@pubcore/generator-js
v1.2.1
Published
Yeomnan generator to create scaffolding for js package
Downloads
7
Keywords
Readme
Commandline tool to scaffolding new packages
Prerequisites
- latest version of nodejs
- latest version of npm
- git
Yeoman generator to create a package scaffolding for ECMAScript 2021, with
- eslint
- prettier with husky pre-commit hook
- transpiler via esbuild
- running tests via mocha
- sho code coverage after test run with nyc
Install it global
npm install -g yo @pubcore/generator-js
How to use
- within your scope directoy craete a new one (convention: lower case and dash-separated)
mkdir new-project
- and change into it
cd new-project
- execute
yo @pubcore/js
- (optional) if your code already exists, copy it into src/app.mjs.