https://github.com/nilshansen94/feature-generator
https://github.com/nilshansen94/feature-generator
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nilshansen94/feature-generator
- Owner: nilshansen94
- Created: 2025-03-13T12:43:30.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T14:02:51.000Z (3 months ago)
- Last Synced: 2025-03-13T14:30:50.143Z (3 months ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started With Schematics
This schematic generates a pure component and it's container and if specified also a service.\
Example: \
`ng g feature:feature --name abc`\
This leads to the following file structure:```
abc/
├── component/
│ ├── abc.component.scss
│ ├── abc.component.html
│ └── abc.component.ts
├── container/
│ └── abc-container.component.ts
├── service/
│ └── abc.service.ts
└── specs/
├── abc.component.spec.ts
├── abc-container.component.spec.ts
├── abc.service.spec.ts
└── abc.component.stories.ts
```## How to run the schematic
1. Pull this repository.
2. run `npm install`
2. In this repository:
1. run `npm run build`
2. only once: `npm link`
3. In you angular project:
1. only once: `npm link feature`
2. `ng g feature:feature --name abc`If you modify the schematic, it is sufficient to run `npm run build` in the schematic, and then you can test the schematic in your angular
project by simply executing again the `ng g feature:feature --name abc` command.