Socket
Book a DemoInstallSign in
Socket

generator-grunt

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-grunt

A gruntfile generator for Yeoman

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

generator-grunt

Dependency Status devDependency Status NPM version Code Climate Coverage Status

Yeoman generator for grunt

Installation

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.

Roadmap

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

License

MIT © Yoshua Wuyts

Keywords

yeoman-generator

FAQs

Package last updated on 02 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts