https://github.com/espressotutorials/et-schematics
Some custom angular schematics for Espresso Tutorials Projects
https://github.com/espressotutorials/et-schematics
Last synced: about 1 year ago
JSON representation
Some custom angular schematics for Espresso Tutorials Projects
- Host: GitHub
- URL: https://github.com/espressotutorials/et-schematics
- Owner: espressotutorials
- Created: 2023-08-15T14:50:55.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T08:09:15.000Z (about 2 years ago)
- Last Synced: 2025-03-09T21:46:35.647Z (over 1 year ago)
- Language: TypeScript
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Espresso Tutorials custom schematics
This repository contains custom schematics for generating Angular components and services for Espresso Tutorials angular projects.
### Testing
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.
Check the documentation with
```bash
schematics --help
```
### Unit Testing
`npm run test` will run the unit tests, using Jasmine as a runner and test framework.
### Publishing
To publish, simply do:
```bash
npm run build
npm run release
```
## Usage
### Installation
```bash
npm install @espressotutorialsgmbh/et-schematics
```
### Generate a page
```bash
ng g @espressotutorialsgmbh/et-schematics:add-page --name={NAME} --path={PATH}
```
#### Attributes
`name` - The name of the page to generate.\
`path` - The path at which to create the page. If not specified, the page will be created at the default path "pages" of the project.