kessel

0.4.2 • Public • Published

A application/boilerplate generator for Express.js and Hapi.js, inspired by express-generator

Install

$ npm -g install kessel

Usage

Create the app:

$ kessel -d /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Last step to start the application at port 4004:

$ npm start -- 4004

Command Line Options

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

  -H, --hapi                 Hapi.js framework. Default: true
  -E, --express              Express framework.
  --minimal                  create a application with a minimal footprint.
  --hbs                      add Handlebars templating support. Default: true
  -p, --pug                  add Pug (Jade) templating support.
  -e, --ejs                  add Embedded JavaScript templating support.
  -d PATH, --directory=PATH  define the target directory.
  -n STR, --name=STR         define the name of the application.
  -s, --semicolon            semicolon-less code style.
  --author=STR               specifiy the author of the project. Environment:
                             KESSEL_AUTHOR=STR
  --licence=STR              specifiy the licence of the project. Environment:
                             KESSEL_LICENCE=STR
  --private                  specifies if the application should be flagged as
                             private. Environment: KESSEL_PRIVATE=1. Default:
                             false
  --no-git                   no .gitignore.
  -h, --help                 print the usage and exits.
  -V, --version              print the version and exits.
  -v, --verbose              explain what is being done.

Environment Variables

The following Environment Variables are aviable at the moment:

KESSEL_AUTHOR (String)

Sets the author in the applications package.json file

KESSEL_PRIVATE (Boolean)

A environment variable which gives you the option to set your projects to private

KESSEL_LICENCE (String)

Define the licence for the package.json file

License

MIT

TODO

Things that I would like to add at some point:

  • CSS pre-processor options

Readme

Keywords

none

Package Sidebar

Install

npm i kessel

Weekly Downloads

1

Version

0.4.2

License

MIT

Last publish

Collaborators

  • florians