Simple setup to use as a starting point for a project using Gulp
You will require node and npm installed.
You should also install gulp globaly.
Run $ npm install -g gulp
Install node modules
Run $ npm install
This task compiles all source files
This task validates the JavaScript, runs tests and compiles it
This task runs compass to compile the SCSS files into CSS
This task minifies all HTML files
This task is not yet complete, but will compress all image files
This task adds all the branches you will require to develope with
This task deals with creating and removing branches to work on new features.
The feature branch will be pre-fixed with f_
. You do not have to add this to the options.
Options
--new "featureName"
start a new feature branch--complete "featureName"
merge the new feature back into thedev
branch
This task merges the dev
branch into the test
branch. It enables other developers to continue adding features while you test the features for the next release.
This task releases the code to the master
branch. It also increases the version number (depending on the options set)
Options
--mgs "commit message"
The commit message--type [major|minor|patch]
The type of release (default - patch)
This task deals with quick patches to the main code
The hotfix branch will be pre-fixed with hf_
. You do not have to add this to the options.
Options
--new "hotfixName"
start a new hotfix branch--complete "hotfixName"
merge the fix back into themaster
branch and release immediatly
On complete the changes made will also be merged into the dev
branch, so that future release include the bug fixes.