A application/boilerplate generator for Express.js and Hapi.js, inspired by express-generator
$ npm -g install kessel
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
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.
The following Environment Variables are aviable at the moment:
Sets the author in the applications package.json file
A environment variable which gives you the option to set your projects to private
Define the licence for the package.json file
Things that I would like to add at some point:
- CSS pre-processor options