@ngflow/ng-architect 1.0.2 → 1.0.3
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 +31 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@ngflow/ng-architect) [](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`ng-architect` is an **Angular schematic** that automates the creation of **complete features** while keeping a clean and consistent **project structure and architecture**.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
It generates **pages, services, models, store, and routes**, making your development faster and more organized.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 📦 Installation
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
|
-
|
|
14
|
+
# Install as a dev dependency
|
|
15
|
+
npm install @ngflow/ng-architect --save-dev
|
|
13
16
|
```
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Publishing
|
|
18
|
+
## Usage
|
|
19
|
+
```bash
|
|
20
|
+
ng g @ngflow/ng-architect:ng-architect --name=<feature-name>
|
|
20
21
|
|
|
21
|
-
To publish, simply do:
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
npm publish
|
|
23
|
+
example:
|
|
24
|
+
ng g @ngflow/ng-architect:ng-architect --name=user-profile
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
```bash
|
|
28
|
+
This will create the following structure:
|
|
29
|
+
|
|
30
|
+
src/app/features/user-profile/
|
|
31
|
+
├─ data/
|
|
32
|
+
│ ├─ user-profile.service.ts
|
|
33
|
+
│ └─ user-profile.store.ts
|
|
34
|
+
├─ models/
|
|
35
|
+
│ └─ user-profile.model.ts
|
|
36
|
+
└─ pages/
|
|
37
|
+
├─ user-profile.page.ts
|
|
38
|
+
├─ user-profile.page.html
|
|
39
|
+
└─ user-profile.page.scss
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
If app.routes.ts exists, the feature route will be added automatically.
|
|
43
|
+
```
|