opinionated scaffolder for adding a JavaScript package to an existing monorepo
$ npm install @form8ion/add-package-to-monorepo --save-prod
import yargs from 'yargs';
import {hideBin} from 'yargs/helpers';
import {scaffold} from '@form8ion/add-package-to-monorepo';
yargs(hideBin(process.argv))
.scriptName('form8ion-utils')
.usage('Usage: $0 <cmd> [args]')
.command('add-package', 'Add a JavaScript package to an existing monorepo', () => scaffold({
decisions: {},
overrides: {copyrightHolder: 'Foo Bar'}
}))
.help('h')
.alias('h', 'help')
.argv;
$ nvm install
$ npm install
$ npm test