The dictyWeb generator
Yeoman generator that scaffolds out a front-end web app for the dictyBase. This generator is a version of the fantastic webapp generator.
Features
- CSS Autoprefixing (new)
- Built-in preview server with LiveReload
- Automagically compile CoffeeScript & Sass
- Automagically lint your scripts
- Automagically wire up your Bower components with bower-install.
- Awesome Image Optimization (via OptiPNG, pngquant, jpegtran and gifsicle)
- Mocha Unit Testing with PhantomJS
- Optional - Bootstrap for Sass
- Optional - Leaner Modernizr builds (new)
For more information on what generator-dictyweb
does, take a look at the Grunt tasks used in our package.json
.
Getting Started
- Install:
npm install -g generator-dictyweb
- If you don't install globally, then
npm install generator-dictyweb
- If you don't install globally, then
- Create folder and cd in:
mkdir dicty_www && cd dicty_www
- Run:
yo dictyweb
- Run
grunt
for building andgrunt serve
for preview.
Making it available on NPM registry
(Assuming you have your own account on NPM, otherwise you need to npm adduser peterpeter
)
-
Modify the file
package.json
updating version (or whatever information you want to include) -
npm publish
To unpublished a previous version, then nom unpublished generator-dictyweb@#.#.#