1.0.1 • Published 3 years ago

component-template-builder v1.0.1

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

component-template-builder

Generate component shells using a predefined template (Currently only supports React)

Usage

  • To use this CLI run the following commands:
    • For usage with a prompt:
npx cmp
  • Alternatively:
npx cmp featureName
  • This will create a directory named featureName and add an index.js and a file named featureName. It will contain a React component shell with the appropriate name as well.

Additional Utilities:

cmp help
  • Logs out all available commands
cmp featureName -d
  • Switches to declaration component syntax (default syntax is fat arrow)
cmp featureName -c
  • Switches to class component syntax

Notes:

- If the file name already exists then the CLI will error out to prevent overwriting existing code.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.