Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

springroll-update

0.1.1 • Public • Published

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.

install

npm i springroll-update

Downloadsweekly downloads

2

version

0.1.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar