GruntWork is a simplistic Grunt boilerplate for small JS projects. It aims to be lightweight, understandable and easy to configure and extend.
- edit
package.json
for version, author, description, license etc - add info, dependencies to
bower.json
- optionally customize
Gruntfile.js
to your needs
npm install
bower install
Update devDependencies
npm install --save-dev grunt grunt-replace grunt-contrib-clean grunt-contrib-concat grunt-contrib-copy grunt-contrib-jshint grunt-contrib-watch grunt-contrib-uglify
As usual: develop in src
and compile to dist
.
Project meta data are defined in package.json
. The Gruntfile features custom CONF
object for a quick project setup.
grunt watch
grunt
'grunt-replace' // dist file names in index.html
'grunt-contrib-jshint'
'grunt-contrib-watch'
'grunt-contrib-concat' // js. css
'grunt-contrib-copy' // js, css, html, assets
'grunt-contrib-clean'
'grunt-contrib-uglify' // js
- LESS tasks