generator-pugcoffeesass v0.2.1
PugCoffeeSass Yeoman Generator
Pug + Coffeescript + Sass web project generator, with Grunt, made for simple websites.
Getting Started
Prerequisites
This generator requires NodeJS to run its tools. The generated project requires Ruby and Sass, a CSS extension language, installed with the following command:
gem install sassYou will also need to install Grunt, a Javascript task runner:
npm install -g grunt-cliInstalling
Once all prerequisites are installed, it is easy to get up and running with this boilerplate.
First, you'll need to install Yeoman and this generator:
npm install -g yo generator-pugcoffeesassThen, run the following command:
yo pugcoffeesassAnd you are good to go!
Usage
Development
Launch the dev server with the command:
grunt serverAnd access it on your browser via http://localhost:3000.
Every modification in the src/ directory triggers a new build and reloads your browser page.
Production
Build the project with the command:
grunt buildYou'll find the compiled files in the generated dist/ folder.
Features
- Pug - Template engine for writing HTML
- Sass - Extension of the CSS language
- CoffeeScript - Language that compiles into JavaScript
- Linters for each of these languages:
- Development server, powered by grunt-express and grunt-contrib-watch
Tests
Testing this package requires Mocha and CoffeeScript:
npm install -g mocha coffeescriptYou can then run the tests with the following command:
npm testAuthors
- Christopher Georget - Chrigeo
License
This project is licensed under the MIT License - see the LICENSE file for details.