@hughescr/generator-node-basic
v2.0.1
Published
Basic NodeJS project with package.json, .eslint.rc, Sublime project, test directory, Gruntfile, README, etc
Downloads
2
Readme
Overview
This is a scaffold for the basic structure of a NodeJS package for Craig's use
Use
Install yo and the generator (probably globally), create a directory for your project, then run the generator in that directory
npm -g install yo @hughescr/generator-node-basic
mkdir sample-project
cd sample-project
yo @hughescr/node-basic
Answer the questions for the config you want, then sit back and it'll build and set up:
- Main source stub
- Unit test stubs
- ESLint
- Gulp, including
lint
target which runs lintmocha
target which runs the unit teststest
target which runs lint & tests
- NPM package.json, including
postversion
script which handles git updating of version ticking