From e83667ad769387e8ef34c8a686a6b5d972b141ff Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 24 Jun 2019 17:06:09 +0200 Subject: [PATCH] fix(bazel): remove unsupported Css pre-processors from ng new (#31234) Under Bazel, we don't yet support Stylus and Less, and thus we should not offer the users to generate applications which are known not to work. Closes #31209 PR Close #31234 --- packages/bazel/src/schematics/ng-new/schema.d.ts | 2 -- packages/bazel/src/schematics/ng-new/schema.json | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/bazel/src/schematics/ng-new/schema.d.ts b/packages/bazel/src/schematics/ng-new/schema.d.ts index a678f5e1cb..3d26236a7c 100644 --- a/packages/bazel/src/schematics/ng-new/schema.d.ts +++ b/packages/bazel/src/schematics/ng-new/schema.d.ts @@ -96,10 +96,8 @@ export interface CommitObject { */ export declare enum Style { Css = "css", - Less = "less", Sass = "sass", Scss = "scss", - Styl = "styl" } /** * The view encapsulation strategy to use in the initial project. diff --git a/packages/bazel/src/schematics/ng-new/schema.json b/packages/bazel/src/schematics/ng-new/schema.json index 9704fbbab4..877a941985 100644 --- a/packages/bazel/src/schematics/ng-new/schema.json +++ b/packages/bazel/src/schematics/ng-new/schema.json @@ -117,9 +117,7 @@ "enum": [ "css", "scss", - "sass", - "less", - "styl" + "sass" ], "x-prompt": { "message": "Which stylesheet format would you like to use?", @@ -127,9 +125,7 @@ "items": [ { "value": "css", "label": "CSS" }, { "value": "scss", "label": "SCSS [ http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax ]" }, - { "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/documentation/file.INDENTED_SYNTAX.html ]" } ] } },