Skip to content

Latest commit

 

History

History
94 lines (67 loc) · 2.27 KB

steps.md

File metadata and controls

94 lines (67 loc) · 2.27 KB

Grunt the JavaScript Task Runner

  • pre-existing static assets

  • npm init

  • touch Gruntfile.js

  • npm install grunt-cli -g

  • npm install grunt

  • npm install grunt-contrib-concat --save

Stylesheet Preprocessors

Thinking about Dependency Management

CoffeeScript

  • npm install grunt-contrib-clean --save
  • npm install grunt-contrib-uglify --save
  • npm install grunt-open --save-dev
  • npm install grunt-contrib-coffee --save

Bower

Precompiling Templates for MV*

grunt-angular-templates

  • npm install grunt-angular-templates --save

Optimizing for Developer Happiness

grunt-concat-sourcemap

  • npm install grunt-concat-sourcemap --save

Alternative Frameworks & Dependency Management Strategies

Backbone, precompiling handlebars

CommonJS, A simple module format

  • npm install grunt-browserify --save
  • npm install coffeeify --save

Yeoman

  • cd yeoman-workflow
  • npm install
  • bower install
  • grunt server

Lineman

  • cd lineman-workflow
  • npm installl
  • lineman

Bonus: Grunt Contrib Imagemin

  • cd grunt-workflow
  • npm install grunt-contrib-imagemin --save
  • grunt imagemin