1.2.1 • Published 5 years ago
@pubcore/generator-js v1.2.1
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-jsHow 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.