0.1.1 • Published 9 years ago

springroll-update v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

springroll-update

Build Status Dependency Status

Running major structural updates to games.

Install

Install using NPM. Make sure to install globally.

sudo npm install -g springroll-update

Usage

Open the directory which contains all your projects and run the springroll-update command. Below is the format of the script arguments.

springroll-update [--pull|-p] [--update=*] [*]

Examples

####Git Pull All

To update all games from Git. This would be like called git pull master origin from each folder.

springroll-update -p

Custom Command

To run a custom bash script, set it as the update argument.

springroll-update --update="grunt clean config manifest default"

Custom Update Script

For example, to run a patch on all games:

springroll-update --update=patch.js

patch.js

module.exports = function(gamePath, completed)
{
  // do something to the game
  // where gamePath is the full
  // system path to the root
  // game folder.
  
  // When done, call completed
  // this can be useful for doing async updates
  completed();
};

License

MIT License.