generator-node-special
v4.0.2
Published
Yeoman generator for node-module with latest babel, webpack, jest, eslint, travis-ci
Downloads
33
Readme
generator-node-special
Yeoman generator for node projects with latest babel, webpack, jest, eslint, travis-ci, terraform
Installation
Make sure you have
yo
installed:npm install -g yo
Install this generator:
npm install -g generator-node-special
Clone an empty repo, create a new directory or cd into existing project
From inside project root, run
yo node-special
:warning: For existing projects, package.json
will be modified:
conflict package.json
? Overwrite package.json? overwrite
Templates
node-module (default):
yo node-special
or yo node-special:module
- Latest babel, webpack, jest, eslint, travis-ci
- Preset npm scripts:
test
,coverage
,lint
,build
- Preset TravisCI configuration (
.travis.yml
)
lambda: AWS Lambda stack
yo node-special:lambda
- Latest babel, webpack, jest, eslint, travis-ci, terraform
- Preset npm scripts:
test
,coverage
,lint
,build
,deploy
- Preset Terraform configuration (
terraform.tf
) - Preset TravisCI configuration (
.travis.yml
) - :warning: This template will prompt for AWS account ID and existing S3 bucket for storing Terraform remote state
- :warning:
npm run deploy
requires terraform to be installed