Boilerplate for frontend development using HTML5 Boilerplate, mobile first styles, CoffeeScript and LESS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
CHANGELOG
Gruntfile.js
LICENCE
README.md
package.json

README.md

GRUNTEND Dependency Status

Boilerplate for frontend development using HTML5 Boilerplate, mobile first styles, CoffeeScript and LESS. Built using Grunt.

Getting Started

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.

HTML5 Boilerplate diff

  • main.css is renamed -> base.less. Your base styles for all screen widths greater than 0px go in base.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 and 960.less. Styles for screen width of 320px and above go in 320.less, Styles for screen width of 768px and above go in 768.less etc. There is also a main.less and ie.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 the ie.less stylesheet instead
  • main.js renamed -> main.coffee

Release History

  • 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!