818 Commits

Author SHA1 Message Date
Charles Lyding
575b1a75b1 fix(@schematics/angular): only update removed v12 options in migration 2021-02-11 07:42:16 -05:00
Doug Parker
c5c80c4159 release: v12.0.0-next.0 2021-02-10 15:55:31 -08:00
Alan Agius
f424529d9c feat(@schematics/angular): add migration to remove deprecated options from 'angular.json' 2021-02-09 08:50:00 -05:00
Alan Agius
d3a36355fb build: update karma to version ~6.1.0 2021-02-03 09:57:21 +01:00
Vladimir Pavlenko
1af01d29f0 docs: replace broken link
Rectifies a broken link into `ng new` section.
2021-02-02 17:36:13 +01:00
Doug Parker
2afcf298e5 release: v11.2.0-next.0
No need to update root `package.json` as it is already version `11.2.0-next.0`.
2021-01-27 12:56:51 -08:00
Alan Agius
385aeda2e7 refactor(@schematics/angular): use includes instead of RegExp 2021-01-14 10:44:27 -05:00
Charles Lyding
eba0973e10 feat(@schematics/angular): create new projects with karma 6.0
Newly generated projects will now use karma 6.0 by default.
2021-01-13 23:12:55 +01:00
Alan Agius
08b263ca94 refactor(@schematics/angular): remove unused TS AST utils 2021-01-07 09:38:18 +01:00
Keen Yee Liau
bffc0300fc release: v11.1.0-next.4 2021-01-06 13:31:59 -08:00
Alan Agius
65dac11c20 fix(@schematics/angular): correctly handle PropertyAssignments with StringLiteral keys
Closes #16009
2021-01-06 12:02:06 +00:00
Oleksii Potiekhin
99756614aa fix(@schematics/angular): remove unnecessary scripts and dependencies
When new application is generated with --minimal flag it will be
created without any testing frameworks, linters, etc. But package.json
still contains broken scripts and dependencies.

So "test": "ng test", "lint": "ng lint" and "tslint": "~6.1.0",
"ts-node": "~8.3.0" should be removed. By analogy with "e2e": "ng e2e".
2020-12-18 08:31:34 +01:00
Keen Yee Liau
805396e0a1 release: v11.1.0-next.3 2020-12-17 08:40:23 -08:00
Oleksii Potiekhin
f73a878c67 fix(@schematics/angular): adjust block comment
https://github.com/Microsoft/tslint-microsoft-contrib

ERROR: 21:1 no-single-line-block-comment Replace block comment with a single-line comment
2020-12-15 12:24:53 +00:00
Keen Yee Liau
205ea2b638 release: v11.1.0-next.2 2020-12-09 14:01:32 -08:00
Alan Agius
07e3766220 fix(@schematics/angular): allow trailing commas in JSON files
Currently, both tsconfigs and workspace configuration files can contain trailing commas

Closes #19576
2020-12-09 09:52:35 -05:00
Alan Agius
c99cef7ed6 docs: remove when true, when false from argument descriptions
It's confusing and redundant to use `When true` and `when false` in descriptions for a CLI arguments because specifying false/true is redundant in a command line argument flag and in most cases users will not do it.

Example:
`--foo=true` is the same as `--foo`
`--foo=false` is the same as `--no-foo`
2020-12-08 14:39:23 -05:00
Alan Agius
450d999150 docs: replace appShell with app-shell
Favor kebab cases
2020-12-04 13:42:40 -05:00
Charles Lyding
053ffe9e8d refactor(@schematics/angular): update vendored TypeScript to 4.1 2020-12-03 16:43:39 -05:00
Charles Lyding
774cd52dd0 feat(@schematics/angular): generate new projects with TypeScript 4.1 2020-12-03 16:43:39 -05:00
Alan Agius
e546bd5c64 docs: switch aliased to camel case in @schematics/angular 2020-12-03 12:58:38 -05:00
Doug Parker
5746ae568c release: v11.1.0-next.1 2020-12-02 11:28:44 -08:00
tim_frijters
b07fc6fafd fix(@schematics/angular): Alphabetized named imports 2020-12-01 10:05:02 +01:00
tim_frijters
2dac2ac769 fix(@schematics/angular): Alphabetized import sources within a group 2020-12-01 10:05:02 +01:00
JiaLiPassion
535a5076d9 feat(@schematics/angular): update zone.js version to 0.11.3 2020-11-24 13:33:26 +00:00
cexbrayat
5a0940e62d fix(@schematics/angular): document jasmine options
Currently it can be hard to find how to configure Jasmine in the Karma config.
For example, a developer might want to reproduce a randomly failing test with a specific seed.

This commit adds some information that may be helpful to beginners.
2020-11-20 11:37:19 +00:00
Keen Yee Liau
d392f87d7a release: v11.1.0-next.0 2020-11-18 11:10:16 -08:00
Alan Agius
5ce88ef7be refactor(@schematics/angular): handle undefined JSON AST Node 2020-11-16 12:59:06 -05:00
Renovate Bot
c62cc8b862 build: update jsonc-parser to version 3.0.0 2020-11-16 12:59:06 -05:00
cexbrayat
53193eaf77 fix(@schematics/angular): remove duplicated Karma traces
Currently, Karma is reporting a failed test and the total twice in a bare CLI project:

```
12 11 2020 13:59:46.666:INFO [launcher]: Starting browser Chrome
✔ Browser application bundle generation complete.
12 11 2020 13:59:50.457:INFO [Chrome 86.0.4240.198 (Mac OS 10.15.7)]: Connected on socket F0ehOBWL6BYFqXfbAAAA with id 69358036
Chrome 86.0.4240.198 (Mac OS 10.15.7) AppComponent should render title FAILED
	Error: Expected 'ponyracer app is running!' to contain 'other'.
	    at <Jasmine>
	    at UserContext.<anonymous> (src/app/app.component.spec.ts:29:65)
	    at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:364:1)
	    at ProxyZoneSpec.push.QpwO.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/zone-testing.js:292:1)
Chrome 86.0.4240.198 (Mac OS 10.15.7): Executed 2 of 3 (1 FAILED) (0 secs / 0.231 secs)
Chrome 86.0.4240.198 (Mac OS 10.15.7) AppComponent should render title FAILED
	Error: Expected 'ponyracer app is running!' to contain 'other'.
	    at <Jasmine>
	    at UserContext.<anonymous> (src/app/app.component.spec.ts:29:65)
	    at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:364:1)
Chrome 86.0.4240.198 (Mac OS 10.15.7): Executed 3 of 3 (1 FAILED) (0.309 secs / 0.242 secs)
TOTAL: 1 FAILED, 2 SUCCESS
TOTAL: 1 FAILED, 2 SUCCESS
```

This is a bit annoying when you have several tests failing, and tend to confuse beginners.

This commit configures the Karma HTML reporter to suppress the duplicates (both error and success), which results in only one reporter showing the failed test and total:

```
12 11 2020 14:01:43.002:INFO [launcher]: Starting browser Chrome
✔ Browser application bundle generation complete.
12 11 2020 14:01:58.728:INFO [Chrome 86.0.4240.198 (Mac OS 10.15.7)]: Connected on socket Pc0xPggxJPdC8E_LAAAA with id 54797430
Chrome 86.0.4240.198 (Mac OS 10.15.7) AppComponent should render title FAILED
	Error: Expected 'ponyracer app is running!' to contain 'other'.
	    at <Jasmine>
	    at UserContext.<anonymous> (src/app/app.component.spec.ts:29:65)
	    at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:364:1)
	    at ProxyZoneSpec.push.QpwO.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/zone-testing.js:292:1)
Chrome 86.0.4240.198 (Mac OS 10.15.7): Executed 3 of 3 (1 FAILED) (0.331 secs / 0.252 secs)
TOTAL: 1 FAILED, 2 SUCCESS
```
2020-11-13 15:53:01 -05:00
Charles Lyding
644c2d738d fix(@schematics/angular): migrate project dependencies to new project versions
This change reuses the v10 migration with update package versions to ensure that an updated project matches the development dependency versions of a newly generated project.
2020-11-12 14:39:25 -05:00
cexbrayat
8e8a51c3fa fix(@schematics/angular): remove trailing comma in karma conf
We usually don't have trailing commas in the generated code of the CLI (and this one makes the linter/formatter angry).
2020-11-12 13:16:40 -05:00
Alan Agius
0bc15970ad refactor(@schematics/angular): use jsonc-parser instead of devkit parser 2020-11-05 08:31:02 +01:00
Alan Agius
94ada4f6b8 docs(@angular/cli): use application instead of app 2020-11-02 13:36:13 -06:00
Pete Bacon Darwin
0491717704 feat(@schematics/angular): add enableI18nLegacyMessageIdFormat default to new projects
The ViewEngine message extraction generates a variety of legacy formats
for extracted message ids. These formats have a number of issues related
to whitespace handling and reliance upon information inside the original
HTML of a template. The new message format is more resilient to things
like whitespace changes, and can be generated directly from calls to
`$localize`, which allows messages in application code to have the same
id as identical messages in templates.

As a first step in migrating projects away from the legacy id format
for i18n messages, this commit updates newly generated projects to turn
off the legacy ids.

In the future the default will be flipped and this can be removed.
Eventually the legacy message id support will be removed altogether,
probably in sync with removal of ViewEngine.
2020-10-27 15:58:09 -04:00
Alan Agius
5ebb100877 refactor(@schematics/angular): remove unused schematic utils 2020-10-27 12:10:46 -04:00
Alan Agius
7e25cedd4b refactor(@schematics/angular): move version 6 migration untils under the migration folder 2020-10-27 12:10:46 -04:00
Alan Agius
b8bc02d14a fix(@schematics/angular): update @types/jasmine to ~3.6.0 2020-10-26 13:29:18 -04:00
Alan Agius
affaabe6d3 fix(@schematics/angular): remove lint fix default value
Since will remove lintFix usage warnings when the option is set by a default of another schematic.

Example when executing
```
ng generate module customers --route customers --module app.module
```

The lintFix default of the module schematic will be passed down to the component schematic which would cause a warning to be shown.

Closes #19169
2020-10-22 15:48:30 +02:00
Doug Parker
46b613fb82 Revert "release: v11.0.0-rc.0"
This reverts commit a986ce72394f8bff821e04538033737cc0993e83.

RC should be cut from the `11.0.x` branch, not from `master`.
2020-10-21 13:22:03 -07:00
Doug Parker
a986ce7239 release: v11.0.0-rc.0 2020-10-21 13:10:32 -07:00
Alan Agius
9768230b4d docs: update further help section in readme 2020-10-21 14:15:24 +02:00
Alan Agius
904fc19950 feat(@schematics/angular): add migration to remove rebaseRootRelativeCssUrls from workspace config 2020-10-20 16:53:24 +02:00
Charles Lyding
af1d49d18a fix(@schematics/angular): allow inlineTemplate/inlineStyle with minimal application
This change allows `inlineTemplate=false` and/or `inlineStyle=false` to be used with the `minimal` option when creating an application either by `ng new` or `ng generate application`.

Closes #17528
2020-10-17 15:59:52 +02:00
Jefiozie
45c0b50998 feat(@schematics/angular): add generation for resolvers
closes: #17569
2020-10-15 07:37:34 +02:00
mgechev
d3e8f6872c release: v11.0.0-next.7 2020-10-15 03:50:00 +03:00
Alan Agius
008133b9aa feat(@schematics/angular): update ng-packagr to version 11 2020-10-09 13:13:27 -04:00
Alan Agius
32e24ff76a fix(@schematics/angular): use strict guide short url 2020-10-09 13:12:41 -04:00
Keen Yee Liau
a65d2990b7 release: v11.0.0-next.6 2020-10-08 13:17:34 -07:00
Keen Yee Liau
bad0ced885 release: v11.0.0-next.5 2020-10-07 20:01:49 -07:00