generator-backend-scaffolder
v1.0.19
Published
Scaffolder for backend code, covering testing, code coverage, doctests and linting
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-scaffolderUsage
yo backend-scaffolderOnce 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.jsonNo 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
mochatests withistanbulcode coverage generated
- Run
npm run doctest- Run
jsdoctesttests withmocha, no code coverage will be generated
- Run
npm run lint- Run
eslintlinter 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
