generator-create-package
v1.11.0
Published
Boring TypeScript Package Generator
Downloads
10
Maintainers
Readme
Features
Generated package includes the following features:
- [x] RollupJS with @rollup/plugin-typescript, @rollup/plugin-node-resolve & @rollup/plugin-commonjs
- [x] Prettier with @boringcodes/prettier-config
- [x] ESLint with @boringcodes/eslint-config-typescript
- [x] Husky
- [x] Lint Staged
- [x] Standard Version
Installation
Make sure yeoman
is installed
$ yarn global add yo
Then install the generator
$ yarn global add generator-create-package
Usage
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
Contributing
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.