Package Exports
- generator-new-node-module
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generator-new-node-module) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
< Yeoman generator create scaffolding node modules />
#Install
Install generator-nodeModule from npm, run:
$ npm install -g yo$ npm install -g generator-new-node-moduleFinally initiate the generator:
$ yo new-node-module#Features
- Babel ☝️
- Lint with ESLint
- Tests with tape in ES6
- Travis CI and Coveralls
- Airbnb CodeStyle
- Husky before commit/push
- Productivity scripts and source watcher
- Check
packagedependencies - Automatic TOC with tocdoc
#Usage
You need Yeoman to run this command.
yo new-node-module
→ create package.json
→ create README.md
→ create LICENSE
→ create CHANGELOG.md
→ create src/index.js
→ create test/index.js
→ create .editorconfig
→ create .gitignore
→ create .travis.yml
→ create .eslintrc#Workflow
Add code to
src/index.jsand tests totest/index.js.Lint, build and test a project with
npm run build.Build and watch changes in
src/withnpm run watchRun only tests with
npm run test.Check coverage with
npm run coverage.Generate a TOC for the
CHANGELOGwithnpm run tocDeploy to a remote origin with
npm run deploy.Bump version and publish a package with
npm run majororminor/patch
#License
MIT ©