generator-backend-scaffolder
v1.0.19
Published
Scaffolder for backend code, covering testing, code coverage, doctests and linting
Downloads
7
Maintainers
Readme
generator-backend-scaffolder
Yeoman backend scaffolder for Node.js modules.
generator-backend-scaffolder
will establish the following:
- editor configuration (with editorconfig)
- git (with gitignore)
- linting (with eslint and eslint-config-suddi)
- testing (with mocha)
- doctest (with jsdoctest)
- code coverage (with istanbul and codecov)
- CI (either TravisCI, CircleCI or none)
- dependency management (with David-DM)
- licensing (with generator-license)
npm install -g generator-backend-scaffolder
Usage
yo backend-scaffolder
Once run, generator-backend-scaffolder
will generate the following file structure:
.
├── test
│ └── options
│ ├── default.opts
│ └── doctest.opts
├── .editorconfig
├── .eslintignore
├── .gitignore
├── .istanbul.yml
├── .travis.yml (if "TravisCI" option is chosen)
├── circle.yml (if "CircleCI" option is chosen)
├── README.md
└── package.json
No dependencies
will be installed, the following devDependencies
will be installed:
- eslint
- eslint-config-suddi
- husky (for pre-push hooks)
- istanbul
- jsdoctest
- mocha
- nsp (for security checks)
- ntl (for an interactive CLI for
npm tasks
)
Additionally, the following npm tasks
will also be setup and can be triggered as follows:
npm run check-coverage
- Ensure code coverage meets code coverage standards mentioned in
.istanbul.yml
- Ensure code coverage meets code coverage standards mentioned in
npm run coverage
- Run
mocha
tests withistanbul
code coverage generated
- Run
npm run doctest
- Run
jsdoctest
tests withmocha
, no code coverage will be generated
- Run
npm run lint
- Run
eslint
linter on project
- Run
npm run prepush
- Run git pre-push hook, will be run automatically when pushing to remote repository
npm run security-check
- Run a security check using the
Node Security (nsp)
module
- Run a security check using the
npm start
- Run
Node Task List (ntl)
module to create interactive menu fornpm tasks
- Run
npm test
- Run a compiled list of tests