Skip to content

Commit

Permalink
fix(bazel): remove unsupported Css pre-processors from ng new (#31234)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alan-agius4 authored and kara committed Jun 24, 2019
1 parent 805fc86 commit e83667a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/bazel/src/schematics/ng-new/schema.d.ts
Expand Up @@ -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.
Expand Down
8 changes: 2 additions & 6 deletions packages/bazel/src/schematics/ng-new/schema.json
Expand Up @@ -117,19 +117,15 @@
"enum": [
"css",
"scss",
"sass",
"less",
"styl"
"sass"
],
"x-prompt": {
"message": "Which stylesheet format would you like to use?",
"type": "list",
"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 ]" }
]
}
},
Expand Down

0 comments on commit e83667a

Please sign in to comment.