generator-grunt
Yeoman generator for grunt
Installation
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
.
Roadmap
variable file paths- best practice bower pathing
- copy images / fonts
- SCSS support
- EJS support
- jasmine support
- supertest support
License
MIT © Yoshua Wuyts