Icard/angular-clarity-master(work.../node_modules/@schematics/angular/ng-new/schema.json

146 lines
4.9 KiB
JSON
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsAngularNgNew",
"title": "Angular Ng New Options Schema",
"type": "object",
"description": "Creates a new project by combining the workspace and application schematics.",
"additionalProperties": false,
"properties": {
"directory": {
"type": "string",
"description": "The directory name to create the workspace in."
},
"name": {
"description": "The name of the new workspace and initial project.",
"type": "string",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the new workspace and initial project?"
},
"skipInstall": {
"description": "Do not install dependency packages.",
"type": "boolean",
"default": false
},
"linkCli": {
"description": "Link the CLI to the global version (internal development only).",
"type": "boolean",
"default": false,
"visible": false
},
"skipGit": {
"description": "Do not initialize a git repository.",
"type": "boolean",
"default": false,
"alias": "g"
},
"commit": {
"description": "Initial git repository commit information.",
"oneOf": [
{ "type": "boolean" },
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"message": {
"type": "string"
}
},
"required": ["name", "email"]
}
],
"default": true
},
"newProjectRoot": {
"description": "The path where new projects will be created, relative to the new workspace root.",
"type": "string",
"default": "projects"
},
"inlineStyle": {
"description": "Include styles inline in the component TS file. By default, an external styles file is created and referenced in the component TypeScript file.",
"type": "boolean",
"alias": "s",
"x-user-analytics": "ep.ng_inline_style"
},
"inlineTemplate": {
"description": "Include template inline in the component TS file. By default, an external template file is created and referenced in the component TypeScript file.",
"type": "boolean",
"alias": "t",
"x-user-analytics": "ep.ng_inline_template"
},
"viewEncapsulation": {
"description": "The view encapsulation strategy to use in the initial project.",
"enum": ["Emulated", "None", "ShadowDom"],
"type": "string"
},
"version": {
"type": "string",
"description": "The version of the Angular CLI to use.",
"visible": false,
"$default": {
"$source": "ng-cli-version"
}
},
"routing": {
"type": "boolean",
"description": "Generate a routing module for the initial project.",
"x-user-analytics": "ep.ng_routing"
},
"prefix": {
"type": "string",
"format": "html-selector",
"description": "The prefix to apply to generated selectors for the initial project.",
"minLength": 1,
"default": "app",
"alias": "p"
},
"style": {
"description": "The file extension or preprocessor to use for style files.",
"type": "string",
"enum": ["css", "scss", "sass", "less"],
"x-user-analytics": "ep.ng_style"
},
"skipTests": {
"description": "Do not generate \"spec.ts\" test files for the new project.",
"type": "boolean",
"default": false,
"alias": "S"
},
"createApplication": {
"description": "Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.",
"type": "boolean",
"default": true
},
"minimal": {
"description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
"type": "boolean",
"default": false
},
"strict": {
"description": "Creates a workspace with stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/guide/strict-mode",
"type": "boolean",
"default": true
},
"packageManager": {
"description": "The package manager used to install dependencies.",
"type": "string",
"enum": ["npm", "yarn", "pnpm", "cnpm"]
},
"standalone": {
"description": "Creates an application based upon the standalone API, without NgModules.",
"type": "boolean",
"default": false,
"x-user-analytics": "ep.ng_standalone"
}
},
"required": ["name", "version"]
}