790 Commits

Author SHA1 Message Date
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
Alan Agius
811966a2e2 docs: improve strict option description 2020-10-07 13:18:30 -04:00
Alan Agius
dea7431e54 feat(@schematics/angular): add prompt to strict mode 2020-10-07 13:18:30 -04:00
Alan Agius
2fb0198de2 feat(@schematics/angular): add user-analytics to strict mode option 2020-10-07 13:18:30 -04:00
Alan Agius
57b63b3a93 refactor(@schematics/angular): deprecate lintFix option
As part of tslint deprecation we are also deprecated the lintFIx option. Users should use `ng lint --fix` directly instead
2020-10-07 11:12:58 -04:00
jaroslawsawicki
b2363414e1 fix(@schematics/angular): pass down recursive flag
This change makes `findNodes` recursive
2020-10-06 11:10:14 -04:00
jaroslawsawicki
8d7703e7b5 fix(@schematics/angular): test findNodes with recursive flag
This change adds unit tests for using `recursive` flag in `findNodes`
2020-10-06 11:10:14 -04:00
Charles Lyding
0bdea8ddea feat(@schematics/angular): generate E2E tests with native promise support
This change adjusts the E2E schematic to generate a protractor configuration with the selenium promise manager disabled.  It also adjusts the generated test files to use native promises and async/await to control test execution.
2020-10-05 19:06:14 -04:00
Alan Agius
5617131e7f fix(@schematics/angular) remove reference to IE10 in comment
IE 10 is no longer supported therefore we removed it from the classlist polyfill comment.
2020-10-02 15:43:26 -04:00
Aristeidis Bampakos
2cf1b9a2f0 refactor(@schematics/angular): display Stylus documentation url with HTTPS
Display the url of the Stylus format in the list of stylesheet format selection with SSL
2020-10-01 13:53:34 -04:00
Doug Parker
dcc9ddd252 release: 11.0.0-next.4
This reverts commit 557c51e7963737ca60250e4dcb1899a51f4f3805.

Second attempt at the release having disabled the failing lint test.
2020-09-30 16:55:18 -07:00
Doug Parker
557c51e796 Revert "release: 11.0.0-next.4"
This reverts commit b95bd854b870c8f02555064adf992d9dbdadd931.

CI is failing because of a lint error in new projects from
[this PR](https://github.com/angular/angular/pull/38698/files#diff-d9887009ccabf0a9a6a1257c272ecb3aR48) using double
quotes instead of single quotes.
2020-09-30 15:35:40 -07:00
Doug Parker
b95bd854b8 release: 11.0.0-next.4 2020-09-30 12:11:55 -07:00
Alan Agius
ae73e44b2a feat(@schematics/angular): don't generate special package.json and no-any when using --strict
Following feedback from the community, which showed a high number of users found it hard to work with the `no-any` lint rule and also the `sideEffects` package.json file. With DevRel we decided to remove both features when generating a strict workspace and/or application.
2020-09-30 20:56:04 +02:00
Alan Agius
84e07e9d1a feat(@schematics/angular): update migration to remove deprecated environment option 2020-09-30 13:49:13 +02:00
Charles Lyding
e64ea69cf4 fix(@schematics/angular): remove IE9/10 from browserslist for new projects
BREAKING CHANGE:
Deprecated support for IE 9-10 has been removed in Angular 11.
Only IE 9-10 support has been removed. IE 11 is officially supported in Angular 11.
Additional information can be found here: https://v10.angular.io/guide/deprecations#ie-9-10-and-mobile
2020-09-25 22:46:04 +02:00
Alan Agius
621f15aa18 refactor(@schematics/angular): remove unused json utils 2020-09-24 19:46:44 +02:00
Charles Lyding
0589a59f15 refactor(@schematics/angular): use new JSON helpers in codelyzer-5 migration 2020-09-24 14:04:06 +02:00
Charles Lyding
8facdaee1b refactor(@schematics/angular): use new JSON helpers in v9 migration utilities 2020-09-24 14:04:06 +02:00
Charles Lyding
3173cc06b0 refactor(@schematics/angular): remove unused v9 migration utilities 2020-09-24 14:04:06 +02:00
Charles Lyding
c49ebe78a2 refactor(@schematics/angular): use new workspace helpers in update-i18n migration 2020-09-24 14:04:06 +02:00
Charles Lyding
6ff04473ef refactor(@schematics/angular): use new workspace helpers in update-app-tsconfigs migration 2020-09-24 14:04:06 +02:00
mgechev
b830087e78 release: v11.0.0-next.3 2020-09-24 01:15:21 +03:00
eranshmil
5d75699134 fix(@schematics/angular): remove solution style throw an error
remove-solution-style-tsconfig migration fail when upgrading from version 10.0.* to 10.1.* with the following error:
[error] Error: Could not read 'tsconfig.json'
2020-09-24 00:07:48 +03:00
Jefiozie
432fcb0d9b fix(@angular/cli): replace regex with correct project name validation
Closes #17579
2020-09-24 00:04:58 +03:00
Charles Lyding
86e4201d60 refactor(@schematics/angular): use new workspace helpers in update-server-main-file migration 2020-09-23 11:22:28 -05:00
Charles Lyding
c859fcb65e refactor(@schematics/angular): use new workspace helpers in ngsw-config migration 2020-09-23 11:22:28 -05:00
Charles Lyding
39fd968673 refactor(@schematics/angular): use new workspace helpers in remove-tsickle migration 2020-09-23 11:22:28 -05:00
Charles Lyding
7b1787fc57 refactor(@schematics/angular): use new JSON helpers in ngsw-config migration 2020-09-23 11:22:28 -05:00