Giter VIP home page Giter VIP logo

wp-dev-lib's People

Contributors

adekbadek avatar akirk avatar delawski avatar dependabot[bot] avatar derekherman avatar fjarrett-godaddy avatar frankiejarrett avatar garyjones avatar jamesgol avatar jdgrimes avatar jonathanbardo avatar jrfnl avatar kasparsd avatar kopepasah avatar marcin-lawrowski avatar mattgeri avatar mehigh avatar mikeschinkel avatar ocean90 avatar patelutkarsh avatar pierlon avatar rmccue avatar shadyvb avatar thierrya avatar valendesigns avatar westonruter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-dev-lib's Issues

Add support for Codeception

When the project includes Codeception tests, the pre-commit and travis.script.sh scripts should run them.

svn-push script error after readme parse

I already have setup pre-commit hook where readme.txt is getting parsed on each commit. Of course if there are any changes.

So when i release my plugin on WordPress.org using svn-push script, it has nothing new to parse in readme.txt and readme.md stays intact as it is.

And then svn-script throws this error and exits.

Please commit (--amend?) the updated readme.md

When I try git status it gives me readne.md in unstaged section. Like below:

screenshot from 2015-01-02 13 16 16

I see an if condition here. What could be the significance of it ? Am I missing something here ?

exclude assets folder

Not sure whether this is an issue or not. But I was facing it and I had to fix it with patch-work.

There's an exclude flag in rsync to fetch repo files from git into svn. Ref.

So what is this doing is; excluding all the assets folder from the repository; and not just the one which is required for banners & screenshots. For example, in my plugin; I'm putting my JS, CSS etc. into app/assets/ folder. Also I've used a few vendor libraries in which assets folder is used. So svn-push script ignores all these folders along with the one with banners; resulting in partial file uploads in WordPress.org SVN repo. And this eventually breaks the plugin functionality.

So what I did to prevent this is; removed the exclude flag for assets from rsync and after that I removed assets folder from svn trunk using rm.

Though this worked for me, I had a hunch that either I'm doing something wrong or missing something in order to use this script.

Suggestions ?

Format code for Github use

It would be nice to have a way to format single quote code block from readme.txt into triple quote code block for Github use.

So :
<?php echo 'hello'; ?>

Would appear in readme.md :

<?php echo 'hello'; ?>

Option for Travis CI graphic to only reference the primary branch

Since Travis CI is testing all branches often times the graphic shows that the build is failing even though the primary/stable branch is passing.

There needs to be an option to only point to the master branch (or whatever the stable branch is) for generating the graphic.

screen shot 2013-12-17 at 3 57 17 pm

Allow readme syncing to be disabled

There are cases where one might want the other stuff, but would like to turn of the readme syncing.

I think it would be generally useful to add support in the precommit file for an additional configuration file to be loaded, so that it could be configured/extended without hacking it. I guess that might be for another issue, though.

Add checks from VIP's SVN pre-commit hook

The VIP pre-commit hook runs JS through YUI Compressor to do syntax checking. We need to do the same for the pre-commit hook and the .travis.yml, something like:

wget https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar
for js in $(find . -name '*.js'); do
    java -jar yuicompressor-2.4.8.jar -o /dev/null $js 2>&1
    if [ $? != 0 ]; then
        exit 1;
    fi
done

Add PHP Depend

pdepend can generate a large set of software metrics from a given code base. These values can be used to measure the quality of a software project and they help to identify the parts of an application where a code refactoring should be applied.
http://phpqatools.org/

http://pdepend.org/

Add script to update/re-sort readme.txt contributors by git shortlog -s

In the course of time, those who have the most impact on a plugin's development changes, and they should be properly recognized for their contributions. One way to do so is to have them appear higher in the list of contributors on the WordPress.org plugin page. The initial developer(s) of the plugin should probably remain at the top of the contributors list.

To accomplish the above, a file will need to be added to each project which maps WordPress.org usernames to the author names used in the Git commits.

contributing.md file mentions non-existant develop branch

From contributing.md:

Pull requests should be opened with the develop branch as the base. Do not open pull requests into the master branch, as this branch contains the latest stable release.

But there isn't any develop branch at the moment.

Support syntax highlighting in code blocks

AFAIK the only way to achieve a code block in readme.txt is to use the <pre> tag.

It would be nice to add support for a lang attribute so that syntax highlighting can be added when converting to markdown.

TXT

<pre lang="php">
function foo() {
    $bar = 'baz';
}
</pre>

Markdown

function foo() {
    $bar = 'baz';
}

Inconsistent naming of the PHPCS ruleset.xml file

In .travis.yml and pre-commit, it is referenced as ruleset.xml. However, the name of the file in the repo, and the symlink created by following the readme's instructions, is phpcs.ruleset.xml. This may be intended, but I don't see any documentation to that effect. (My 2¢: I'd prefer to just make it phpcs.ruleset.xml across the board, if there is no intended difference.)

Validate XML config files

I'm currently using:

xmllint --noout $(find . ! -path "./dev-lib/*" ! -path "./vendor/*" \( -name '*.xml' -o -name '*.xml.dist' \))

Other things will usually break anyway if these are invalid, though.

Update Travis to check for error logs during phpunit execution

Travis check for errors added to log for standard http requests or during unit test running. We could do this by temporarily changing the location of the error_log and then after running all of the unit tests, check to see if error|warning|notice or any of the other strings appear in the log. If they do not appear, or if the log is empty, the test passes.

Check text-domain compliance

  • Check if a text-domain header exists ( if is a plugin / theme )
  • Check all instances of translation functions to confirm the text domain is typed correctly

Add README.md support for README.txt YouTube embeds

Need to add it here: https://github.com/x-team/wp-plugin-dev-lib/blob/5de1b8e9338ddce03e4ebdfe3f3cc77794c8686b/class-wordpress-readme-parser.php#L88-L93

See: http://make.wordpress.org/core/2010/02/20/plugins-can-now-include-videos-in-their-readme-txt-files/

Transform the following in readme.txt:

[youtube http://www.youtube.com/watch?v=D1GHc5OGWEQ]

Into the following in readme.md:

[![Play video on YouTube](http://i1.ytimg.com/vi/D1GHc5OGWEQ/hqdefault.jpg)](http://www.youtube.com/watch?v=D1GHc5OGWEQ)

Only run staged JS into JSHint

Currently, a fix can be applied but not staged, and this passes JSHint. We need to pass the staged file into JSHint instead.

Introduce .ci-config.sh to override Travis and pre-commit defaults

There should be a .ci-config.sh (or something) which exports various Bash variables which can be read-in by .travis.yml and bin/pre-commit.These variables can control things like:

  • Allow readme syncing to be disabled (#28)
  • Where to fetch PHP_CodeSniffer from (also should grab from GitHub instead of Pear), and which branch or tag to use.
  • Where to fetch WordPress Coding Standards from, and which branch/tag/commit to use.
  • Path to phpunit.xml
  • Path to PHPCS ruleset XML file.
  • URL for Travis build button (for generate-markdown-readme), instead of pulling from the git remote

Others?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.