3.0.1 • Published 3 years ago

@ancientbag/create-react-templates v3.0.1

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

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:

isRequiredproptype
truetypestring: component / hook
truenamestring
Example:

create-react-templates --type=component --name=MyComponent

ToDo

  • Configurable templates
  • CLI interactive menu
  • Beautify CLI output