Skip to content

Commit b6892e2

Browse files
MeAkibalan-agius4
authored andcommitted
docs: correct inlineStyle and Karma include option descriptions
The `ng new`/`application` `inlineStyle` description claimed only CSS can be included inline, but the schematic sets `inlineStyleLanguage` for other style languages, so inline Sass and Less work. The Karma `include` description said directories pick up only `.spec` files, but test discovery matches both `.spec` and `.test` files with `.ts` or `.tsx`. (cherry picked from commit b1e814c)
1 parent b7e2456 commit b6892e2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/angular/build/src/builders/karma/schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
"type": "string"
183183
},
184184
"default": ["**/*.spec.ts"],
185-
"description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists, it will be included instead."
185+
"description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all test files ending \".@(spec|test).@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching test file exists, it will be included instead."
186186
},
187187
"exclude": {
188188
"type": "array",

‎packages/schematics/angular/application/schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"x-prompt": "What name would you like to use for the application?"
2222
},
2323
"inlineStyle": {
24-
"description": "Include the styles for the root component directly within the `app.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`) is created.",
24+
"description": "Include the styles for the root component directly within the `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created.",
2525
"type": "boolean",
2626
"alias": "s",
2727
"x-user-analytics": "ep.ng_inline_style"

0 commit comments

Comments
 (0)