fix(bazel): update ng new schema to match the current ng new schema of @schematics/angular (#31234)
The schema used in ng-new bazel, includes several outdated options. With this update we match the current version of @schematics/angular: https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/ng-new/schema.json Relates to #31233 PR Close #31234
This commit is contained in:
parent
23c017121e
commit
805fc8698c
|
@ -2,16 +2,16 @@
|
||||||
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
||||||
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
||||||
|
|
||||||
// tslint:disable:no-global-tslint-disable
|
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
|
|
||||||
export interface Schema {
|
export interface Schema {
|
||||||
/**
|
/**
|
||||||
* Initial repository commit information.
|
* Initial git repository commit information.
|
||||||
*/
|
*/
|
||||||
commit?: CommitUnion;
|
commit?: CommitUnion;
|
||||||
/**
|
/**
|
||||||
* Flag to toggle creation of an application in the new workspace.
|
* When true (the default), creates a new initial app project in the src folder of the new
|
||||||
|
* workspace. When false, creates an empty workspace with no initial app. You can then use
|
||||||
|
* the generate application command so that all apps are created in the projects folder.
|
||||||
*/
|
*/
|
||||||
createApplication?: boolean;
|
createApplication?: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -19,85 +19,94 @@ export interface Schema {
|
||||||
*/
|
*/
|
||||||
directory?: string;
|
directory?: string;
|
||||||
/**
|
/**
|
||||||
* EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering
|
* When true, creates a new app that uses the Ivy rendering engine.
|
||||||
* engine.
|
|
||||||
*/
|
*/
|
||||||
experimentalIvy?: boolean;
|
enableIvy?: boolean;
|
||||||
/**
|
/**
|
||||||
* Specifies if the style will be in the ts file.
|
* When true, includes styles inline in the component TS file. By default, an external
|
||||||
|
* styles file is created and referenced in the component TS file.
|
||||||
*/
|
*/
|
||||||
inlineStyle?: boolean;
|
inlineStyle?: boolean;
|
||||||
/**
|
/**
|
||||||
* Specifies if the template will be in the ts file.
|
* When true, includes template inline in the component TS file. By default, an external
|
||||||
|
* template file is created and referenced in the component TS file.
|
||||||
*/
|
*/
|
||||||
inlineTemplate?: boolean;
|
inlineTemplate?: boolean;
|
||||||
/**
|
/**
|
||||||
* Link CLI to global version (internal development only).
|
* When true, links the CLI to the global version (internal development only).
|
||||||
*/
|
*/
|
||||||
linkCli?: boolean;
|
linkCli?: boolean;
|
||||||
/**
|
/**
|
||||||
* Create a barebones project without any testing frameworks
|
* When true, creates a project without any testing frameworks. (Use for learning purposes
|
||||||
|
* only.)
|
||||||
*/
|
*/
|
||||||
minimal?: boolean;
|
minimal?: boolean;
|
||||||
/**
|
/**
|
||||||
* The name of the workspace.
|
* The name of the new workspace and initial project.
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
/**
|
/**
|
||||||
* The path where new projects will be created.
|
* The path where new projects will be created, relative to the new workspace root.
|
||||||
*/
|
*/
|
||||||
newProjectRoot?: string;
|
newProjectRoot?: string;
|
||||||
/**
|
/**
|
||||||
* The prefix to apply to generated selectors.
|
* The prefix to apply to generated selectors for the initial project.
|
||||||
*/
|
*/
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
/**
|
/**
|
||||||
* Generates a routing module.
|
* When true, generates a routing module for the initial project.
|
||||||
*/
|
*/
|
||||||
routing?: boolean;
|
routing?: boolean;
|
||||||
/**
|
/**
|
||||||
* Skip initializing a git repository.
|
* When true, does not initialize a git repository.
|
||||||
*/
|
*/
|
||||||
skipGit?: boolean;
|
skipGit?: boolean;
|
||||||
/**
|
/**
|
||||||
* Skip installing dependency packages.
|
* When true, does not install dependency packages.
|
||||||
*/
|
*/
|
||||||
skipInstall?: boolean;
|
skipInstall?: boolean;
|
||||||
/**
|
/**
|
||||||
* Skip creating spec files.
|
* When true, does not generate "spec.ts" test files for the new project.
|
||||||
*/
|
*/
|
||||||
skipTests?: boolean;
|
skipTests?: boolean;
|
||||||
/**
|
/**
|
||||||
* The file extension to be used for style files.
|
* The file extension or preprocessor to use for style files.
|
||||||
*/
|
*/
|
||||||
style?: string;
|
style?: Style;
|
||||||
/**
|
/**
|
||||||
* The version of the Angular CLI to use.
|
* The version of the Angular CLI to use.
|
||||||
*/
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
/**
|
/**
|
||||||
* Specifies the view encapsulation strategy.
|
* The view encapsulation strategy to use in the initial project.
|
||||||
*/
|
*/
|
||||||
viewEncapsulation?: ViewEncapsulation;
|
viewEncapsulation?: ViewEncapsulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initial repository commit information.
|
* Initial git repository commit information.
|
||||||
*/
|
*/
|
||||||
export type CommitUnion = boolean | CommitObject;
|
export declare type CommitUnion = boolean | CommitObject;
|
||||||
|
|
||||||
export interface CommitObject {
|
export interface CommitObject {
|
||||||
email: string;
|
email: string;
|
||||||
message?: string;
|
message?: string;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the view encapsulation strategy.
|
* The file extension or preprocessor to use for style files.
|
||||||
*/
|
*/
|
||||||
export enum ViewEncapsulation {
|
export declare enum Style {
|
||||||
Emulated = 'Emulated',
|
Css = "css",
|
||||||
Native = 'Native',
|
Less = "less",
|
||||||
None = 'None',
|
Sass = "sass",
|
||||||
ShadowDOM = 'ShadowDom',
|
Scss = "scss",
|
||||||
|
Styl = "styl"
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The view encapsulation strategy to use in the initial project.
|
||||||
|
*/
|
||||||
|
export declare enum ViewEncapsulation {
|
||||||
|
Emulated = "Emulated",
|
||||||
|
Native = "Native",
|
||||||
|
None = "None",
|
||||||
|
ShadowDom = "ShadowDom"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,43 +9,41 @@
|
||||||
"description": "The directory name to create the workspace in."
|
"description": "The directory name to create the workspace in."
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"description": "The name of the workspace.",
|
"description": "The name of the new workspace and initial project.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "html-selector",
|
"format": "html-selector",
|
||||||
"$default": {
|
"$default": {
|
||||||
"$source": "argv",
|
"$source": "argv",
|
||||||
"index": 0
|
"index": 0
|
||||||
},
|
},
|
||||||
"x-prompt": "What name would you like to use for the project?"
|
"x-prompt": "What name would you like to use for the new workspace and initial project?"
|
||||||
},
|
},
|
||||||
"experimentalIvy": {
|
"enableIvy": {
|
||||||
"description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.",
|
"description": "When true, creates a new app that uses the Ivy rendering engine.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"skipInstall": {
|
"skipInstall": {
|
||||||
"description": "Skip installing dependency packages.",
|
"description": "When true, does not install dependency packages.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"linkCli": {
|
"linkCli": {
|
||||||
"description": "Link CLI to global version (internal development only).",
|
"description": "When true, links the CLI to the global version (internal development only).",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"visible": false
|
"visible": false
|
||||||
},
|
},
|
||||||
"skipGit": {
|
"skipGit": {
|
||||||
"description": "Skip initializing a git repository.",
|
"description": "When true, does not initialize a git repository.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"alias": "g"
|
"alias": "g"
|
||||||
},
|
},
|
||||||
"commit": {
|
"commit": {
|
||||||
"description": "Initial repository commit information.",
|
"description": "Initial git repository commit information.",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{ "type": "boolean" },
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -69,30 +67,25 @@
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"newProjectRoot": {
|
"newProjectRoot": {
|
||||||
"description": "The path where new projects will be created.",
|
"description": "The path where new projects will be created, relative to the new workspace root.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "projects"
|
"default": "projects"
|
||||||
},
|
},
|
||||||
"inlineStyle": {
|
"inlineStyle": {
|
||||||
"description": "Specifies if the style will be in the ts file.",
|
"description": "When true, includes styles inline in the component TS file. By default, an external styles file is created and referenced in the component TS file.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"alias": "s"
|
"alias": "s"
|
||||||
},
|
},
|
||||||
"inlineTemplate": {
|
"inlineTemplate": {
|
||||||
"description": "Specifies if the template will be in the ts file.",
|
"description": "When true, includes template inline in the component TS file. By default, an external template file is created and referenced in the component TS file.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"alias": "t"
|
"alias": "t"
|
||||||
},
|
},
|
||||||
"viewEncapsulation": {
|
"viewEncapsulation": {
|
||||||
"description": "Specifies the view encapsulation strategy.",
|
"description": "The view encapsulation strategy to use in the initial project.",
|
||||||
"enum": [
|
"enum": ["Emulated", "Native", "None", "ShadowDom"],
|
||||||
"Emulated",
|
|
||||||
"Native",
|
|
||||||
"None",
|
|
||||||
"ShadowDom"
|
|
||||||
],
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"version": {
|
"version": {
|
||||||
|
@ -105,58 +98,53 @@
|
||||||
},
|
},
|
||||||
"routing": {
|
"routing": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Generates a routing module.",
|
"description": "When true, generates a routing module for the initial project.",
|
||||||
"default": false,
|
"default": false,
|
||||||
"x-prompt": "Would you like to add Angular routing?"
|
"x-prompt": "Would you like to add Angular routing?"
|
||||||
},
|
},
|
||||||
"prefix": {
|
"prefix": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "html-selector",
|
"format": "html-selector",
|
||||||
"description": "The prefix to apply to generated selectors.",
|
"description": "The prefix to apply to generated selectors for the initial project.",
|
||||||
"minLength": 1,
|
"minLength": 1,
|
||||||
"default": "app",
|
"default": "app",
|
||||||
"alias": "p"
|
"alias": "p"
|
||||||
},
|
},
|
||||||
"style": {
|
"style": {
|
||||||
"description": "The file extension to be used for style files.",
|
"description": "The file extension or preprocessor to use for style files.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "css",
|
"default": "css",
|
||||||
|
"enum": [
|
||||||
|
"css",
|
||||||
|
"scss",
|
||||||
|
"sass",
|
||||||
|
"less",
|
||||||
|
"styl"
|
||||||
|
],
|
||||||
"x-prompt": {
|
"x-prompt": {
|
||||||
"message": "Which stylesheet format would you like to use?",
|
"message": "Which stylesheet format would you like to use?",
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{ "value": "css", "label": "CSS" },
|
||||||
"value": "css",
|
{ "value": "scss", "label": "SCSS [ http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax ]" },
|
||||||
"label": "CSS"
|
{ "value": "sass", "label": "Sass [ http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html ]" },
|
||||||
},
|
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
|
||||||
{
|
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ] " }
|
||||||
"value": "sass",
|
|
||||||
"label": "Sass [ http://sass-lang.com ]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "less",
|
|
||||||
"label": "Less [ http://lesscss.org ]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "styl",
|
|
||||||
"label": "Stylus [ http://stylus-lang.com ]"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skipTests": {
|
"skipTests": {
|
||||||
"description": "Skip creating spec files.",
|
"description": "When true, does not generate \"spec.ts\" test files for the new project. ",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false
|
||||||
"alias": "S"
|
|
||||||
},
|
},
|
||||||
"createApplication": {
|
"createApplication": {
|
||||||
"description": "Flag to toggle creation of an application in the new workspace.",
|
"description": "When true (the default), creates a new initial app project in the src folder of the new workspace. When false, creates an empty workspace with no initial app. You can then use the generate application command so that all apps are created in the projects folder.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"minimal": {
|
"minimal": {
|
||||||
"description": "Create a barebones project without any testing frameworks",
|
"description": "When true, creates a project without any testing frameworks. (Use for learning purposes only.)",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue