I attempt to follow the Semver version ethos
npm install
./node_modules/.bin/grunt develop
# optionally you could, so you could just do grunt develop
sudo npm install grunt-cli -g
Note: The release uses the same syntax as bumpup
# default grunt task is to build and create the prod.zip file
grunt
# buildViewFiles will build the view.js file used to
# manage the views for each control
# ( see controls/form/views.js for a good example )
grunt buildViewFiles
# this will release and add a release to the releases
# The release should include a zip of build production files
# TODO: add changelog
grunt release # Default patch release
grunt release:minor # Minor release
grunt release:minor:1458 # Minor release with buildtype suffix
Take the prod.zip file and add it to the booking module
$ tree .
├── prod
│ └── prod.zip
├── templates
│ ├── booking_complete_email_customer.tpl.php
│ └── tabs_booking_payment_complete.tpl.php
├─── tabs_booking_payment_error.tpl.php
├── tabs_booking.admin.inc
├── TabsBookingBlocks.class.php
├── tabs_booking.booking.inc
├── tabs_booking.enquiry.inc
├── tabs_booking.info
├── tabs_booking.install
├── tabs_booking.metatag.inc
├── tabs_booking.module
├── tabs_booking.path.inc
├── TabsBookingSession.class.php
└── TabsBookingUtils.class.php
$ cd prod
$ wget -O prod.zip https://github.com/neontribe/cottage-booking/releases/download/<version>/prod.zip
$ unzip -o prod.zip
$ git commit -am 'Include javascript version <version>'
$ drush cc all
/cottage-booking/app/cottage_booking.html?noFixture=1&apiRoot=http://localhost/zz/
tobias@tobias tabs_booking $ pwd
/var/www/html/zz/sites/all/modules/custom/nt_tabs/tabs_booking
tobias@tobias tabs_booking $ ll prod
lrwxrwxrwx 1 tobias tobias 57 Oct 23 10:21 prod -> /home/tobias/workspace/Cottaging/cottage-booking/app/prod/
tobias@tobias tabs_booking $