frgen 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
### Generator
|
|
2
|
+
|
|
3
|
+
#### Resource
|
|
4
|
+
- make:resource "className" "tableName"
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx frgen make:resource UserResource users
|
|
8
|
+
```
|
|
9
|
+
- shema --schema=schemaName
|
|
10
|
+
```bash
|
|
11
|
+
npx frgen make:resource UserResource users --schema=other_schema
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
#### Controller
|
|
15
|
+
- make:controller "className" "tableName"
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx frgen make:controller UserController users --prisma
|
|
19
|
+
```
|
|
20
|
+
- shema --schema=schemaName
|
|
21
|
+
```bash
|
|
22
|
+
npx frgen make:controller UserController users --schema=other_schema --prisma
|
|
23
|
+
```
|
|
24
|
+
- path --path=/directory/.../target
|
|
25
|
+
```bash
|
|
26
|
+
npx frgen make:controller UserController users --path=/directory/.../target --prisma
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### Service
|
|
30
|
+
- make:service "ServiceName" "tableName"
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx frgen make:service UserService users --prisma
|
|
34
|
+
```
|
|
35
|
+
- shema --schema=schemaName
|
|
36
|
+
```bash
|
|
37
|
+
npx frgen make:service UserService users --schema=other_schema --prisma
|
|
38
|
+
```
|
|
39
|
+
- path --path=/directory/.../target
|
|
40
|
+
```bash
|
|
41
|
+
npx frgen make:service UserService users --path=/directory/.../target --prisma
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Validation
|
|
45
|
+
- make:validation "ValidationName" "tableName"
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx frgen make:validation UserValidation users
|
|
49
|
+
```
|
|
50
|
+
- shema --schema=schemaName
|
|
51
|
+
```bash
|
|
52
|
+
npx frgen make:validation UserValidation users --schema=other_schema
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
#### ALL
|
|
56
|
+
- make:crud "className" "tableName"
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx frgen make:crud --prisma
|
|
60
|
+
```
|
|
61
|
+
- shema --schema=schemaName
|
|
62
|
+
```bash
|
|
63
|
+
npx frgen make:crud --schema=other_schema --prisma
|
|
64
|
+
```
|
|
2
65
|
|
|
3
|
-
Generator CRUD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frgen",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "helper generator",
|
|
5
5
|
"main": "lib/",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/fajarrh
|
|
17
|
+
"url": "git+https://github.com/fajarrh/EPP-Starter.git"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"express",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"author": "fajarrizkyhidayat",
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"bugs": {
|
|
31
|
-
"url": "https://github.com/fajarrh
|
|
31
|
+
"url": "https://github.com/fajarrh/EPP-Starter/issues"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://
|
|
33
|
+
"homepage": "https://github.com/fajarrh/EPP-Starter",
|
|
34
34
|
"files": [
|
|
35
35
|
"lib/**/*"
|
|
36
36
|
],
|