node v0.12.7Although technically other versions of node should work.
npm install- /src
- /img - uncompressed/unminified images
- /styles - *.sass files
- /scripts - unminified js files
- /vendor - js vendor libraries
npm run buildThis will watch the src directory and build the files into the build directory. This minifies images and javascript, as well as building any sass files. Note - npm run build will clean (delete) the build directory when changes are detected in the src folder.
The application will trigger a loadPage:pageName event when it shows a page. You can catch these and perform code on them by doing -
$(document).on('loadPage:about', function () {
console.log('Loaded about page')
})