1.0.10 • Published 10 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.10

10 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago