tshex-cli 1.0.6 → 1.0.8
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/package.json +6 -2
- package/readme.md +10 -1
- package/templates/rfc.example +6 -8
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tshex-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"author": "https://github.com/virtualitems/",
|
|
5
5
|
"description": "Typescript Hexagonal Architecture CLI",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./build/main.js",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"architecture",
|
|
10
|
+
"clean-architecture",
|
|
11
|
+
"clean",
|
|
10
12
|
"cli",
|
|
11
13
|
"ddd",
|
|
12
14
|
"design-patterns",
|
|
@@ -16,7 +18,9 @@
|
|
|
16
18
|
"pattern",
|
|
17
19
|
"software-architecture",
|
|
18
20
|
"tshex",
|
|
19
|
-
"
|
|
21
|
+
"tshex-cli",
|
|
22
|
+
"typescript",
|
|
23
|
+
"virtualitems"
|
|
20
24
|
],
|
|
21
25
|
"homepage": "https://github.com/virtualitems/typescript-codebase/tree/tshex-cli",
|
|
22
26
|
"bugs": {
|
package/readme.md
CHANGED
|
@@ -28,6 +28,15 @@ npm install -g tshex-cli
|
|
|
28
28
|
|
|
29
29
|
# Usage
|
|
30
30
|
|
|
31
|
+
> Remember to replace placeholders `<...>` with the actual data.
|
|
32
|
+
>
|
|
33
|
+
|
|
34
|
+
## Getting started
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
tshex --lib <library-name> --ctx <context-name>
|
|
38
|
+
```
|
|
39
|
+
|
|
31
40
|
## Help
|
|
32
41
|
|
|
33
42
|
```bash
|
|
@@ -63,5 +72,5 @@ tshex --rfc <name>
|
|
|
63
72
|
## Set the directory to create the new items
|
|
64
73
|
|
|
65
74
|
```bash
|
|
66
|
-
tshex --lib <name> --ctx <name> --dir <path>
|
|
75
|
+
tshex --lib <lib-name> --ctx <ctx-name> --dir <path>
|
|
67
76
|
```
|
package/templates/rfc.example
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Libraries
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
3
|
// Components
|
|
6
4
|
|
|
7
|
-
// Features
|
|
8
|
-
|
|
9
5
|
// Hooks
|
|
10
6
|
|
|
7
|
+
// Features
|
|
8
|
+
|
|
11
9
|
// Languages
|
|
12
10
|
|
|
13
11
|
// Styles
|
|
@@ -25,9 +23,9 @@ type Props = React.HTMLProps<HTMLElement> & {};
|
|
|
25
23
|
export default function __COMPONENT__(props: Props): React.ReactElement
|
|
26
24
|
{
|
|
27
25
|
|
|
28
|
-
//
|
|
26
|
+
// MODELS -----------------------------
|
|
29
27
|
|
|
30
|
-
// VIEW
|
|
28
|
+
// VIEW MODELS ------------------------
|
|
31
29
|
|
|
32
30
|
// EFFECTS ---------------------------
|
|
33
31
|
|
|
@@ -36,9 +34,9 @@ export default function __COMPONENT__(props: Props): React.ReactElement
|
|
|
36
34
|
// VIEW ------------------------------
|
|
37
35
|
|
|
38
36
|
return (
|
|
39
|
-
|
|
37
|
+
<>
|
|
40
38
|
{props.children}
|
|
41
|
-
|
|
39
|
+
</>
|
|
42
40
|
);
|
|
43
41
|
|
|
44
42
|
} //:: ReactElement
|