@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.
Files changed (2) hide show
  1. package/README.md +31 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,28 +1,43 @@
1
- # Getting Started With Schematics
1
+ # ![ng-architect](https://img.shields.io/badge/ng--architect-angular-blue)
2
2
 
3
- This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
3
+ [![npm version](https://img.shields.io/npm/v/@ngflow/ng-architect?color=blue)](https://www.npmjs.com/package/@ngflow/ng-architect) [![License](https://img.shields.io/npm/l/@ngflow/ng-architect)](https://opensource.org/licenses/MIT)
4
4
 
5
- ### Testing
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
- To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.
7
+ It generates **pages, services, models, store, and routes**, making your development faster and more organized.
8
8
 
9
- Check the documentation with
9
+ ---
10
+
11
+ ## 📦 Installation
10
12
 
11
13
  ```bash
12
- schematics --help
14
+ # Install as a dev dependency
15
+ npm install @ngflow/ng-architect --save-dev
13
16
  ```
14
17
 
15
- ### Unit Testing
16
-
17
- `npm run test` will run the unit tests, using Jasmine as a runner and test framework.
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
- ```bash
24
- npm run build
25
- npm publish
23
+ example:
24
+ ng g @ngflow/ng-architect:ng-architect --name=user-profile
26
25
  ```
27
26
 
28
- That's it!
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngflow/ng-architect",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Angular schematics to generate files and maintain clean architecture",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",