3.0.1 • Published 5 years ago
@ancientbag/create-react-templates v3.0.1
create-react-templates
This package lets you creating templates with CLI commands.
Using strictly with typescript
May be used additionaly with following packages:
- jest
- testing-library/react
- testing-library/react-hook
- storybook
Getting started
Create crt.config.js in root directory. Specify components and hooks folders for output:
module.exports = {
output: {
components: "./src/components",
hooks: "./src/hooks",
},
};Usecreate-react-templates providing next flags:
| isRequired | prop | type |
|---|---|---|
| true | type | string: component / hook |
| true | name | string |
Example:
create-react-templates --type=component --name=MyComponent
ToDo
- Configurable templates
- CLI interactive menu
- Beautify CLI output