A gruntfile generator for Yeoman

npm install generator-grunt
3 downloads in the last day
49 downloads in the last week
119 downloads in the last month


Dependency Status devDependency Status NPM version Code Climate Coverage Status

Yeoman generator for grunt


With node and yo installed:

npm install -g generator-grunt
mkdir PROJECTNAME && cd PROJECTNAME && yo grunt

Grunt commands

styles: Compile styles (css, rework, scss, less, stylus), autoprefix, optimize with CSSo

views: Compile views (html, jade, ejs)

js: Concat, mangle, optimize and minify

build: Views, styles, js

test: Test (mocha, jasmine, karma, supertest)

time: Lint, build & test while benchmarking

deploy: Add git tags & push upstream / NPM

default: Build, lint, test, server & watch

While always autoreloading, autocorrecting and watching everything...

Directory structure

Generator-grunt assumes the following directory structure:

├── api
├── assets                // CDN src files
│   ├── fonts
│   ├── images
│   ├── js
│   ├── vendor            // bower
│   ├── styles
│   └── views
├── build                 // CDN dist files
├── config                // server config
├── grunt
└── tests

You can edit the paths in Gruntfile.js.


  • variable file paths
  • best practice bower pathing
  • copy images / fonts
  • SCSS support
  • EJS support
  • jasmine support
  • supertest support


MIT © Yoshua Wuyts

npm loves you