/express-generator-pug

This is the same express generator as the original version, except it make use of Pug, instead of Jade for templating (Jade is now deprecated and replaced with Pug, for copyright reasons).

Primary LanguageJavaScriptMIT LicenseMIT

Express Logo

Express' application generator.

NPM Version NPM Downloads Linux Build Windows Build Gratipay

Installation

$ git clone https://github.com/codecoaster/express-generator-pug/
$ cd express-generator-pug
$ npm install -g 

Quick Start

The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below:

Create the app:

$ express --view=hbs /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Start your Express.js app at http://localhost:3000/:

$ npm start

Command Line Options

This generator can also be further configured with the following command line flags.

-h, --help          output usage information
    --version       output the version number
-e, --ejs           add ejs engine support
    --hbs           add handlebars engine support
    --pug           add pug engine support
-H, --hogan         add hogan.js engine support
-v, --view <engine> add view <engine> support (ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)
-c, --css <engine>  add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
    --git           add .gitignore
-f, --force         force on non-empty directory

License

MIT