https://github.com/feeloor/ng-extension-schematics
An extension of default angular schematics
https://github.com/feeloor/ng-extension-schematics
angular angular-extensions angular-schematics angular6 schematics
Last synced: 3 months ago
JSON representation
An extension of default angular schematics
- Host: GitHub
- URL: https://github.com/feeloor/ng-extension-schematics
- Owner: feeloor
- License: mit
- Created: 2018-08-03T21:02:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T22:28:56.000Z (almost 8 years ago)
- Last Synced: 2025-10-18T15:49:31.769Z (9 months ago)
- Topics: angular, angular-extensions, angular-schematics, angular6, schematics
- Language: TypeScript
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @feeloor/ng-extension-schematics
[](https://badge.fury.io/js/%40feeloor%2Fng-extension-schematics)
An extension of default angular schematics.
# How to Install
1. Create a new angular application
2. Add **@feeloor/ng-extension-schematics** via *npm* using `npm install @feeloor/ng-extension-schematics`
3. You can now use any command. For example: `ng g feature-module my-feature --collection=@feeloor/ng-extension-schematics`
4. (Optional) To change your default schematics run `ng config cli.defaultCollection @feeloor/ng-extension-schematics`
# Available Commands
In this package use can use any of the default Angular schematics.
* **component or c**
* Automatically exports component in parent index.ts file.
* Example-usage: `ng g c my-component`
* **core-module or cm**
* Have same options as a default Angular Module
* Creates a CoreModule
* Includes barrel-files and prepared folders for
* Services
* Guards
* Models
* Interceptors
* Resolvers
* Example-usage: `ng g cm core`
* **feature-module or fm**
* Have same options as a default Angular Module (but routing is true by default)
* Creates a Feature Module
* Includes barrel-files and prepared folders for
* components
* services
* models
* Example-usage: `ng g fm my-feature`
* **shared-module or sm**
* Have same options as a default Angular Module
* Creates a SharedModule
* Includes barrel-files and prepared folders for
* components
* pipes
* directives
* Example-usage: `ng g sm shared`
* **path-alias or pa**
* This command generates a new path alias and adds it to your `tsconfig.json`.
* Parameters
* name - The name of the alias.
* path - The path to where the alias should point.
* Example-usage: `ng g pa @base src/app`