Generated package includes the following features:
- RollupJS with @rollup/plugin-typescript, @rollup/plugin-node-resolve & @rollup/plugin-commonjs
- Prettier with @boringcodes/prettier-config
- ESLint with @boringcodes/eslint-config-typescript
- Husky
- Lint Staged
- Standard Version
Make sure yeoman
is installed
$ yarn global add yo
Then install the generator
$ yarn global add generator-create-package
Create a new directory
$ mkdir package-name
Then navigate to the created directory and run the following command to generate source
$ yo create-package
This scaffolds out:
├── .husky
├── src
│ └── index.ts
├── .gitignore
├── package.json
├── README.md
├── rollup.config.js
└── tsconfig.json
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.