20 Commits

Author SHA1 Message Date
Alan Agius
1de6d71edd feat(@schematics/angular): production builds by default
With this change we do several changes to the `angular.json` configuration for `build` , `server` and `app-shell` targets so that these are `production` by default.

- build, server and app-shell targets are configured to run production by default.
- We add a new configuration named `development` to run the mentioned builder targets in development. Ex: `ng build --configuration development`.
- When adding `universal` or `app-shell`, we generate the full set of configurations as per the `buiid` target. Previously, we only generated the `production` configuration.
- We added a helper script in `package.json` to run build in watch mode. `npm run watch` which is a shortcut for `ng build --watch --configuration development`
2021-03-10 08:16:38 -06:00
Alan Agius
8b96e52d83 fix(@schematics/angular): remove solution style tsconfig from new projects
Following the issues highlighted in https://docs.google.com/document/d/1eB6cGCG_2ircfS5GzpDC9dBgikeYYcMxghVH5sDESHw/edit?usp=sharing and discussions held with the TypeScript team. The best course of action is to rollback this feature.

In future, it is not excluded that solution style tsconfigs are re-introduced..

Closes #18040 and closes #18170
2020-08-12 19:26:12 +01:00
Alan Agius
bede23226a feat(@schematics/angular): add solutions style tsconfig structure
In version 3.9, TypeScript introduced the concept of "Solutions Style" tsconfig to improve developer experience.

More info: https://devblogs.microsoft.com/typescript/announcing-typescript-3-9-rc/#solution-style-tsconfig

Closes #17493 and closes #8138
2020-05-20 12:12:33 -07:00
Santosh Yadav
176a823a5e test(@schematics/angular): update test case description 2020-02-18 12:48:00 -08:00
Filipe Silva
216af23ad7 fix(@schematics/angular): resolve windows paths in tsconfig migration
Fix #16800
2020-02-03 17:31:19 -08:00
Charles Lyding
7abaf391b3 refactor(@schematics/angular): separate i18n workspace 9.0 migration 2019-12-12 14:02:25 -08:00
Charles Lyding
347667432e fix(@schematics/angular): improve i18n output path option migration
Output paths that use the locale within a locale specific configuration will now be automatically removed.  This will prevent the potential for the migrated configuration to generate an output path with double locale segments.
2019-12-11 10:51:06 -08:00
Charles Lyding
97c0d57be8 fix(@schematics/angular): improve i18n baseHref migration support for direct localize usage 2019-12-04 08:14:16 -08:00
Charles Lyding
df4c035315 fix(@schematics/angular): migrate localized base HREF options for 9.0 2019-12-04 08:14:16 -08:00
Charles Lyding
b1106360ac fix(@schematics/angular): when migrating do not set base localize option for builder
This can cause unnecesary rebuild time increases and is unneeded when using the new multi-locale builds.
2019-11-26 13:05:30 -08:00
Alan Agius
8b23e64972 fix(@schematics/angular): migrate project to use new i18n options 2019-11-19 11:40:51 -08:00
Alan Agius
bd840b2ea5 fix(@schematics/angular): improve cli migration name and description (#16093) 2019-11-07 16:41:56 -08:00
Charles Lyding
77714cc630 fix(@schematics/angular): disable i18n migrations 2019-10-30 12:00:18 -07:00
Alan Agius
750baf92d6 feat(@schematics/angular): add migration to add new i18n options for Ivy
This migration will update current projects by adding the `i18n` project level option and add `localize` option in the server and browser builder configurations when both `i18nLocale` and `i18nFile` are defined.
2019-10-14 09:55:49 -07:00
Alan Agius
8ea892cb7e feat(@schematics/angular): enable scripts optimization for server bundle
The optimizations are suggested to;
1) disables ngDevMode via terser
2) helps with cold server starts the same way as client by lowering JS parse times
2019-09-23 10:38:48 -07:00
Alan
f4691a545a feat(@schematics/angular): add migration to enable AOT by default
With this change we enable the AOT option for the browser builder when an application will use Ivy as rendering engine.
2019-08-30 00:08:52 +05:30
Charles Lyding
5a7b823b28 test: remove use of deprecated synchronous test helper runSchematic 2019-08-08 08:27:31 -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 Agius
19b120947d feat(@schematics/angular): add migration to add anyComponentStyle bundle budget 2019-07-24 19:05:00 -07:00
Alan
040e3ea789 feat(@schematics/angular): add migration from lazy option to inject 2019-07-02 11:05:51 -07:00