Running major structural updates to games.
Install using NPM. Make sure to install globally.
sudo npm install -g springroll-update
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=*] [*]
####Git Pull All
To update all games from Git. This would be like called git pull master origin
from each folder.
springroll-update -p
To run a custom bash script, set it as the update argument.
springroll-update --update="grunt clean config manifest default"
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();
};
MIT License.