Skip to content

MaskRay/WebAppScaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebApp Scaffold

CLI utilities

  • npm
  • grunt
  • bower

Preferred tasks

Related to preprocessors

  • grunt-contrib-coffee: Serve JS residing in js/
  • grunt-contrib-sass: Serve CSS residing in css/
  • grunt-slim: Slim is better than Jade IMHO

Assets

  • grunt-bower-install: inject bower packages into the HTML
    /! bower:js
    /! endbower

Release

  • grunt-rev: Revisioning assets for cache busting
  • grunt-htmlmin: Minimizing HTML
  • grunt-contrib-cssmin: Minimizing CSS
  • grunt-contrib-uglifier: Minimizing JS
  • grunt-usemin: Replace references to non-optimized scripts or stylesheets
    /! build:js js/dist.js
    script src='js/app.js'
    /! endbuild

Prerequisites

Use grunt and bower to manage frontend assets:

npm i -g grunt-cli bower
npm i # dependencies (including grunt and several grunt tasks) are listed in package.json

Run the following command to store assets into bower_components/:

bower i # package.json

It will fetch jquery.

Web server

Build (into build/), watch and serve:

grunt

Release

build/ -> dist/:

grunt dist

About

Grunt, Bower, npm; Sass, Slim, Coffee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published