-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved composer.json file #1229
Changes from 2 commits
d590c6b
44b30ad
7d0fd16
7247134
4e4055f
0beea63
563aa69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
{ | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4", | ||
"wimg/php-compatibility": "dev-master", | ||
"wp-coding-standards/wpcs": "dev-develop" | ||
}, | ||
"scripts": { | ||
"lint": "phpcs" | ||
} | ||
"name": "wordpress/gutenberg", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-2.0", | ||
"description": "Prototyping since 1440. Development hub for the editor focus in core.", | ||
"homepage": "https://wordpress.github.io/gutenberg/", | ||
"keywords": [ | ||
"gutenberg", "wordpress", "editor", "wp", "react", "javascript" | ||
], | ||
"support": { | ||
"issues": "https://github.com/WordPress/gutenberg/issues" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4", | ||
"squizlabs/php_codesniffer": "2.9.x", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What was the reason for staying on the 2.9.x branch? FWIW, the recent patch that fixed a load of code standards in WP core relied on 3.2.0-dev ( WPCS, PHPCompatibility and the DealerDirect plugin work fine with the PHPCS 3.1.1 (stable release). A constraint of |
||
"wimg/php-compatibility": "dev-master", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current release is |
||
"wp-coding-standards/wpcs": "^0.11.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The latest released version of WPCS is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed by 4e4055f |
||
}, | ||
"require": { | ||
"composer/installers": "~1.0" | ||
}, | ||
"scripts": { | ||
"lint": "phpcs", | ||
"post-install-cmd": [ | ||
"phpcs --config-set installed_paths ../../wp-coding-standards/wpcs/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the DealerDirect plugin, this script is no longer needed (and it doesn't register PHPCompatibility standard anyway). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed in 7247134 |
||
] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The early
0.4.*
releases had a couple of bugs. The constraint should allow the most recent anyway, but worth specifying^0.4.3
just to be sure?