426 Commits

Author SHA1 Message Date
Alan Agius
aeaa97c283 feat(@schematics/angular): add migration for dependencies (#15421) 2019-08-23 10:01:59 -07:00
Keen Yee Liau
ab8d197ca0 release: v9.0.0-next.0 2019-08-22 10:23:11 -07:00
Alan Agius
ad8acb0d23 build: bump angular dev packages to latest next versions 2019-08-22 09:41:28 -07:00
Alan
9702ecbefe build: update zone.js to ~0.10.1 2019-08-21 10:36:08 -07:00
Alan Agius
ec8fb3712f refactor: deprecate universalProject in app-shell schematics as it's unused 2019-08-21 10:35:37 -07:00
Stefanie Fluin
a05148e9f5 fix(@schematics/angular): add twitter link icon (#15385)
* fix(@schematics/angular): add twitter link icon

* fix(@schematics/angular): remove height unit
2019-08-21 10:34:00 -07:00
Alan Agius
426c1da8a0 feat(@schematics/angular): hide universal schematic
The universal schematic by itself doesn't get you a working server application.

BREAKING CHANGE: universal schematic is now hidden and cannot be used with the `ng generate` command.

Users who want a working universal application should use `ng add @nguniversal/express-engine` or `ng add @nguniversal/hapi-engine`

Closes: #15166
2019-08-20 10:16:07 -07:00
Alan Agius
c1523d220a build: update @types/jasmine to version ~3.4.0 2019-08-19 12:22:57 -07:00
Alan Agius
f7f5f5bdd1 fix(@schematics/angular): handle existence of un-referenced library prod tsconfig 2019-08-16 11:59:05 -07:00
cexbrayat
78b408f911 fix(@schematics/angular): default interface for guard
Currently, if the user hits `<Enter>` before selecting an interface to implement, the CLI generates a broken guard that implements no interface. With this commit, the CLI forces a choice in interactive mode and generates a `CanActivate` guard by default.
2019-08-16 09:34:46 -07:00
Alan Agius
0d7dbc7f09 feat(@schematics/angular): update workspace dev dependencies 2019-08-16 09:31:30 -07:00
Alan Agius
46274df62c refactor: workspace config migration to use helper methods 2019-08-16 09:31:18 -07:00
Alan Agius
23217fad08 feat(@schematics/angular): ivy library migration
Add a migration to migrate existing libraries to the new library layout considering it will be the default in version 9.
2019-08-16 09:31:18 -07:00
Alan Agius
96c457d6a5 refactor: add enableIvy: true until FW flips it on by default 2019-08-16 09:31:02 -07:00
Alan
ba8a6ea599 feat(@schematics/angular): remove enableIvy option
With this change we remove the enableIvy option as now we only support generating Ivy application. Users who want to create a VE applications should follow the opt-out guide
2019-08-16 09:31:02 -07:00
Alan
beb7070ac8 feat(@schematics/angular): introduce Ivy libraries for development
Since `NGCC` is non incremental and in library projects we have the original TS sources
we don't need to build a library using the `VE` and transform it using `NGCC`. Instead we can build the library using `NGTSC` (Ivy) directly
 as this enables faster incremental compilations and a better development experience.

 Libraries now have a `production` configuration, which enabled `VE` compilations. As it is not recommended to publish NGTSC (Ivy)
 built libraries to NPM repositories, since Ivy libraries are not backwards compatible with the legacy View Engine.
2019-08-16 09:31:02 -07:00
Alan Agius
2ed70bb5d2 build: update angular packages to version 9 2019-08-16 09:30:22 -07:00
mgechev
5aa3c74ef1 release: v8.3.0-rc.0 2019-08-15 08:20:59 -07:00
mgechev
3eb2b55515 release: v8.3.0-next.2 2019-08-14 18:30:06 -07:00
Minko Gechev
26f66fe366
fix(@schematics/angular): handle the inlineTemplate case for ng new (#15324)
Update the template of `app.component.ts` when using `--inlineTemplate`.
2019-08-14 10:22:09 -07:00
Stefanie Fluin
40601c46e7 feat(@schematics/angular): cli app redesign (#14403)
* feat(@angular/cli): cli app redesign

* add template comment code and fix rocket ship smoke image placement

* correct tests verbiage

* fix tests copy of PR 14484

* move styles to template and remove unused icons font ref

* move font references to template

* remove external font references

* remove body styles and simplify css

* add comment block and remove old comments

* fix end of placeholder comment
2019-08-12 13:54:09 -07:00
Alan Agius
d1b04480e8 fix(@schematics/angular): add manifest.webmanifest to the list of prefetched files in ngws-config.json (#15277)
In the latest versions of Chrome Version 76.0.3809.100, the `manifest.webmanifest` is being requested when offline and is caused a 504 error.

https://github.com/angular/angular-cli/issues/15259#issuecomment-519047384
2019-08-12 10:30:40 -07:00
Alan Agius
0111693271 Ivy build_ng_packagr (#15262)
* test: update ng-packagr builder tests to work on Windows

* build: add ng packagr test large for ivy

* test: fix web-worker test in ivy

Previously, we were not testing web workers under Ivy as we were overriding tsconfig.app.json entirely without including enableIvy.

When enabling Ivy we are getting warning of files that are part of the compilation which causing a warning to show and break the test.

* build: update ng-packagr to `^5.4.0`

* test: display ivy mode message once
2019-08-12 10:20:02 -07:00
Keen Yee Liau
efd1c48e2d release: v8.3.0-next.1 2019-08-08 09:16:23 -07:00
Charles Lyding
5a7b823b28 test: remove use of deprecated synchronous test helper runSchematic 2019-08-08 08:27:31 -07:00
Alan Agius
d7b9650b5f refactor(@schematics/angular): remove hardcoded default values
Defaults in code are no longer required as the root issue was solved by https://github.com/angular/angular-cli/pull/15222
2019-08-08 08:25:50 -07:00
Alan Agius
8aa99bd288 refactor(@schematics/angular): remove unused schema properties from workspace schema
workspace schematic is internal and hence we can safely remove unused properties.
2019-08-05 17:58:21 -07:00
Amadou Sall
c4a3262ee2 fix(@schematics/angular): the ng-new schematic should not prompt for style
closes #13383
2019-08-02 13:34:26 -07:00
Amadou Sall
5b3c608682 fix(@schematics/angular): the ng-new schematic should not prompt for routing
refs #13383
2019-08-02 13:34:26 -07:00
vikerman
01e9c673fa release: v8.3.0-next.0 2019-07-31 14:48:49 -07:00
vikerman
168f07e9d0 release: v8.2.0-rc.0 2019-07-29 12:11:01 -07:00
Amadou Sall
a9ac221c40 fix(@schematics/angular): application schematic should prompt for --routing and --style
This is the first step towards solving issue related to #13383

closes #14705
2019-07-29 10:44:48 -07:00
Filipe Silva
e8dff5718f build: update to TS 3.5 2019-07-29 10:15:23 -07:00
vikerman
3dd3529ba4 release: v8.2.0-next.2 2019-07-25 21:38:08 -07:00
vikerman
07780b9272 style: clean up existing lint errors 2019-07-24 23:28:49 -07:00
Alan Agius
ae0f790ee7 fix(@schematics/angular): change findNodes to stop recursive lookup for child nodes of kind
Curtrently, when a node of kind is found, we recursivly continue to look up it's child nodes until the end of the AST. This ends up returing other nodes which we were not looking for as typically we are looking for the first level of children of the specified kind.

By default now, we stop recursivly looking for child nodes of kind when we encounter one.

Closes #15117
2019-07-24 19:06:47 -07:00
Alan Agius
15ef15e94a style: remove redundant max-line-length disables and fix other lint issues 2019-07-24 19:06:21 -07:00
Alan
fc1fda2663 fix(@schematics/angular): add differential loading profiling file to gitignore
When differential loading enabled we will have different profiling files for every build target

Ex:
```
chrome-profiler-events-es2015.json
speed-measure-plugin-es2015.json
chrome-profiler-events-es5.json
speed-measure-plugin-es5.json
```
2019-07-24 19:05:23 -07:00
Alan Agius
2a0dc39de3 feat(@schematics/angular): add anyComponentStyle to the applications bundle budget 2019-07-24 19:05:00 -07:00
Alan Agius
19b120947d feat(@schematics/angular): add migration to add anyComponentStyle bundle budget 2019-07-24 19:05:00 -07:00
Amadou Sall
d25879f9fc fix(@schematics/angular): the required 'alt' attribute is missing in the root component's template
When you generate an application with `--minimal` flag, the image in the
HTML template of the root component doesn't have the 'alt' attribute
2019-07-24 19:02:47 -07:00
mgechev
47c0db9eb3 release: v8.2.0-next.1 2019-07-17 17:41:17 -07:00
Alan Agius
0551360035 fix(@schematics/angular): exclusively list the files in tsconfigs (#15030)
* test: update tests to work with new stricter tsconfig file inclusions

* fix(@schematics/angular): exclusively list the files in tsconfigs

With the omission of `includes` or `files` in tsconfig files tsc will pick up all the files under the rootDir and make them as part of the compilation. In certain cases, redundant files will be picked up which will cause a slower compilations.

Related to: TOOL-949
2019-07-16 11:04:29 -07:00
Alan Agius
d0f2cc3b68 fix(@schematics/angular): add commonjs module to universal tsconfig (#15090)
The universal tsconfig extends the application tsconfig which by default it's module format is ES2015. While NodeJS 12 does support this, older versions of Node don't
2019-07-16 09:58:44 -07:00
Cédric Exbrayat
9d4d5742bb feat(@schematics/angular): enable ivy in tests (#15044)
If a project is generated with `enableIvy`, this commit adds the necessary configuration to `tsconfig.spec.json` to then run the tests with Ivy. Note that the CLI already does the correct work (runs `ngcc` and then runs the tests).
2019-07-15 09:50:16 -07:00
Keen Yee Liau
982bb42607 release: v8.2.0-next.0 2019-07-10 10:49:12 -07:00
Alan
2c71af1465 fix(@schematics/angular): ignore nested arrays in route declarations
`findNodes` will continue looking for arrays recursively unless we specify that we specify that we want only the first array.

Routes array can contain nested arrays such as when specifying guards.

Fixes #15016
2019-07-10 04:18:23 +08:00
Wataru.Kasahara
4cbf59beb2 fix(@schematics/angular): add text-summary to code coverage reporter 2019-07-10 04:16:27 +08:00
Alan Agius
d8bdf86d07 fix(@schematics/update): update @angular/pwa when migrating to 8
Related to https://github.com/angular/angular-cli/issues/14589#issuecomment-508026441
2019-07-10 04:14:31 +08:00
istiti
c119a402bd fix(@schematics/angular): update sass documentation links
Closes #14975
2019-07-10 04:13:14 +08:00