1.0.10 • Published 2 years ago

@tgianella/create-react-component-cli v1.0.10

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

create-react-component-CLI

Ever dreamt of creating your react components on the command line ? That dream is coming true thanks to this incredible new package.

Right now it is a VERY opinionated tool as it was first created for a group project, accustomed to our own specific filepath conventions, but I'm working on making it more universal and customizable.

Installation

Now officially published to NPM ! :tada:

Install with pnpm add @tgianella/create-react-component-cli, npm add @tgianella/create-react-component-cli or yarn add @tgianella/create-react-component-cli.

Getting started

Run npx newcomp to see help.

Exemple : npx newcomp component_name --props prop1 prop2 --path ./src/pages --page --parent parent_component

This creates a component_name component at src/pages with props prop1 and prop2 and already imported into parent_component.

You can edit the base file path used for creating components in config.json.

Common issues

  • This package checks that react is properly installed by reading package.json. Using it outside of a react project is going to throw an error.
  • Your project needs to have a 'src' directory at the root if you dont specify a path with --path.

TODO

  • Testing
  • Heavy refactoring, splitting up code into functions and modules.
  • Continue implementing options on the command line to unopinionate this package
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago