There are two main branches:
development
: Every development work should be done here firstmaster
: Whenever a new version is ready, mergedevelopment
branch into this one and push
Cloner contains a few automated tasks that helps the developer to make faster and less buggy releases.
- Install nodejs: [https://github.com/joyent/node/wiki/installing-node.js-via-package-manager]
- Install Grunt globally
sudo npm install -g grunt
- Execute
git submodule update --init --recursive
to download every submodule
Cloner requires a few node dependencies for development. Use npm install
to install all of them.
- Make sure that the version in
cloner.php
matches with the version inpackage.json
, otherwise the build will fail. - If you have make changes in copier folder, you'll need to create a commit for that submodule also.
- Update all Git submodules with
git submodule update --remote
- Now execute
npm run build
. A new folder calledbuild
will be created where you can grab the zip file for the new version. - Language files, JS Lint and text domains verification are done during the execution of this script so developer doesn't need to worry about these tasks.
Don't forget to create a new tag in Git!