Boilerplate for frontend development using HTML5 Boilerplate, mobile first styles, CoffeeScript and LESS. Built using Grunt.
Install Node.js
Install Grunt:
npm install -g grunt-cli
Install dependencies:
cd /path/to/gruntend
npm install
Build the site:
grunt
The built site can be found at dist/
Grunt can watch the project and compile LESS and coffeescript when you make changes to the files. Grunt is setup to not minify files when watching them to aid debugging whilst in development.
grunt watch
Project build settings are configured in the usual Gruntfile.js
.
main.css
is renamed ->base.less
. Your base styles for all screen widths greater than 0px go inbase.less
normalize.css
renamed ->normalize.less
to allow it to be imported inline into the compiled stylesheet- There are extra stylesheets in for different screen widths
320.less
,768.less
and960.less
. Styles for screen width of 320px and above go in320.less
, Styles for screen width of 768px and above go in768.less
etc. There is also amain.less
andie.less
stylesheet.main.less
imports your stylesheets wrapped in the relevant @media query blocks.ie.less
does the same, but doesn't use media queries. index.html
includes the concatinated and minified CSS stylesheet (which includes normalise.css). lt-ie8 gets theie.less
stylesheet insteadmain.js
renamed ->main.coffee
- 2013-05-23 v0.5.1 Uses grunt-contrib-cssmin instead of grunt-contrib-mincss, updated to grunt-contrib-watch@0.4.3.
- 2013-04-29 v0.5.0 Updated to HTML5 Boilerplate@4.2.0, grunt-contrib-coffee@0.7.0 grunt-contrib-uglify@0.2.0. Added clean task.
- 2013-03-07 v0.4.0 Updated to grunt-contrib-coffee v0.6.0
- 2013-03-01 v0.3.0 Updated to grunt-contrib-watch v0.3.1. Watch task now watches image directory as well. Added CHANGELOG file.
- 2013-02-18 v0.2.0 Grunt 0.4 support
- 2013-01-26 v0.1.0 Updated to HTML5 Boilerplate v4.1.0 and fixed issue where modernizr & jquery were not copied to output folder.
- 2013-01-18 v0.0.1 Brand new!