-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md~Stashed changes
47 lines (38 loc) · 1.08 KB
/
README.md~Stashed changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Create Component React TS
A NPM Package use to generate react typescript components using [plop](https://www.npmjs.com/package/plop).
## Install
#### Using NPM
```bash
npm i create-component-react-ts
# or
npm install --save create-component-react-ts
```
#### Or Yarn
```bash
yarn add create-component-react-ts
```
## Usage
Add ./node_modules/.bin/create-component-react-ts to package.json scripts also can alias to short name
```json
{
"scripts": {
"create-component-react-ts": "./node_modules/.bin/create-component-react-ts",
"create-react": "./node_modules/.bin/create-component-react-ts"
}
}
```
```bash
npm run create-react component Example1
npm run create-component-react-ts component Example1
yarn create-react component Example1
yarn create-component-react-ts component Example1
```
Example
```bash
yarn create-component-react-ts component TodoTable
yarn create-component-react-ts page TodoPage
yarn create-component-react-ts context Todo
yarn create-component-react-ts hook Todo
yarn create-component-react-ts service ApiTodo
yarn create-component-react-ts utls Storage
```