Skip to content

Instantly share code, notes, and snippets.

@AvocadoVenom
Last active December 10, 2019 23:24
Show Gist options
  • Select an option

  • Save AvocadoVenom/2dfa1ed75c661fcf1258aa7b8f5645a6 to your computer and use it in GitHub Desktop.

Select an option

Save AvocadoVenom/2dfa1ed75c661fcf1258aa7b8f5645a6 to your computer and use it in GitHub Desktop.
Angular schematic : schema
{
"$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"
}
}
}
export interface ModuleOptions {
name: string;
path: string;
useStore?: boolean;
}
{
"$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