Updatejs

Shortcut for npm and bower install/update/prune

View the Project on GitHub cope/updatejs

updatejs

Shortcut for running npm and bower install/update/prune calls.

The script will check for package.json and bower.json before running install/update/prune calls.

The script will recursively search for the location of bower.json in order to handle special “client” folders.

Install:

npm i -g updatejs

Options:

-h, --help       output usage information
-V, --version    output the version number

-n, --npm        Perform *only* npm calls
-b, --bower      Perform *only* bower calls

-i, --install    Perform *only* install calls
-u, --update     Perform *only* update calls
-p, --prune      Perform *only* prune calls

-r, --recursive  Perform calls recursively in all subfolders
                 WARNING: The more projects you have, the slower the update will be...

<no params>      Same as using -nbiup:
                 Performs all npm and bower install/update/prune calls

Usage:

> update
For npm, currently in: C:\GIT\yourproject
Running npm install...
- npm install done.
Running npm update...
- npm update done.
Running npm prune...
- npm prune done.
For bower, currently in: C:\GIT\yourproject
Running bower install...
- bower install done.
Running bower update...
- bower update done.
Running bower prune...
- bower prune done.
Done.

Additional examples: Only install

> update -i
For npm, currently in: C:\GIT\yourproject
Running npm install...
- npm install done.
For bower, currently in: C:\GIT\yourproject
Running bower install...
- bower install done.
Done.

Additional examples: Only npm install

> update -ni
For npm, currently in: C:\GIT\yourproject
Running npm install...
- npm install done.
Done.