Last active
December 10, 2019 23:24
-
-
Save AvocadoVenom/2dfa1ed75c661fcf1258aa7b8f5645a6 to your computer and use it in GitHub Desktop.
Angular schematic : schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", | |
| "schematics": { | |
| "scaffold-schematics": { | |
| "description": "A schematic to scaffold your project.", | |
| "factory": "./scaffold-schematics/index#scaffoldSchematics", | |
| "schema": "./scaffold-schematics/schema.json" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface ModuleOptions { | |
| name: string; | |
| path: string; | |
| useStore?: boolean; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/schema", | |
| "id": "ScaffoldNewProjectSchema", | |
| "title": "Creates a new project", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "description": "Name of the project.", | |
| "type": "string", | |
| "$default": { | |
| "$source": "argv", | |
| "index": 0 | |
| }, | |
| "x-prompt": "Name of the project" | |
| }, | |
| "useStore": { | |
| "description": "NgRx Store files and configs.", | |
| "type": "boolean", | |
| "$default": { | |
| "$source": "argv", | |
| "index": 2 | |
| }, | |
| "x-prompt": "Do you intend to use NgRx Store" | |
| } | |
| }, | |
| "required": [ | |
| "name" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment