Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

neronmoon/scriptsdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

39 Commits

Repository files navigation

scriptsdev for Composer Build Status

It's like require-dev, but for scripts

Installation

Just run composer require neronmoon/scriptsdev --dev

Usage

After installing you able to add extra.scripts-dev directive in your composer.json

...
"extra": {
 "scripts-dev": {
 "post-install-cmd": [
 "npm install --dev"
 ],
 "post-update-cmd": "php ./someCoolCommand.php",
 "test": "phpunit"
 },
}
...

Deprecated Usage

...
"scripts-dev": {
 "post-install-cmd": [
 "npm install --dev"
 ],
 "post-update-cmd": "php ./someCoolCommand.php"
}
...

Known issues

  • Usage of this plugin will cause minor warning of validation process. composer validate command will display something like this.
./composer.json is valid, but with a few warnings
See https://getcomposer.org/doc/04-schema.md for details on the schema
Description for non-existent script "test" found in "scripts-descriptions"

About

Scripts-dev directive for composer

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /