https://github.com/davidcreador/creact-cli
https://github.com/davidcreador/creact-cli
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidcreador/creact-cli
- Owner: Davidcreador
- Created: 2018-06-17T23:47:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T20:36:17.000Z (about 8 years ago)
- Last Synced: 2025-05-28T12:55:11.490Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
creact-cli
=========
### Development tools for React
## Installation
npm install -g creact-cli
## Usage
Usage: creact gen [options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --component [name] Create a component
-s, --service [name] Create a service
-i, --interface [name] Create a interface
-f, --folder [path/to/folder] Create folder structure and store the file
-x, --extension [.ts/.js] Add extension to the file
## Examples
Create component:
creact gen -c my-component // my-component.js
Create component and folder
creact gen -c my-component -f src/app/components/ // src/app/components/my-component.js
Create component - folder - extension
creact gen -c my-component -f src/app/components/ -x .ts // src/app/components/my-component.ts