/GruntWork

GruntWork is a lightweight Grunt boilerplate I use for small JS projects.

Primary LanguageJavaScriptOtherNOASSERTION

GruntWork

Boar walking

GruntWork is a simplistic Grunt boilerplate for small JS projects. It aims to be lightweight, understandable and easy to configure and extend.

Install

  • 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

Development

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.

Watch

grunt watch

Build

grunt

Tasks

'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

TODO

  • LESS tasks