14 Commits

Author SHA1 Message Date
Alan Agius
b7a612f14a feat(@schematics/angular): change browserslist file name to .browserslistrc
Closes: #15961
2020-04-06 09:58:42 -07:00
Charles Lyding
5a7b823b28 test: remove use of deprecated synchronous test helper runSchematic 2019-08-08 08:27:31 -07:00
Alan
aed4228d6f style: disable tslint rule no-big-function 2019-06-25 13:30:28 -07:00
Alan
01930d685d test: file override should happen before migration being run 2019-06-25 13:30:28 -07:00
Alan Agius
c6fb34a092 fix(@schematics/angular): enable tsc downlevelIteration
We by default now use ES2015. Users can use ES2015 iterations however the ES5 build will fail.

Fixes #14697
2019-06-07 13:00:28 -07:00
Alan Agius
0531242f4b fix(@schematics/angular): move browserslist even when no sourceRoot is available
```
Using package manager: 'npm'
Collecting installed dependencies...
Found 36 dependencies.
    ** Executing migrations for package '@angular/cli' **
RENAME src/browserslist => /browserslist
UPDATE tslint.json (2800 bytes)
UPDATE package.json (1396 bytes)
UPDATE tsconfig.json (460 bytes)
UPDATE tsconfig.app.json (282 bytes)
UPDATE tsconfig.spec.json (256 bytes)
```

Fixes #14660
2019-06-06 14:31:32 -07:00
Alan Agius
4e693ef694 fix(@schematics/angular): update or add module and target to non extended tsconfig
Fixes #14436
2019-05-21 09:00:38 -04:00
Alan Agius
5125db38f8 fix(@schematics/angular): differential loading migration should run only for projects using @angular-devkit/build-angular:browser
Differential loading migration should run only when the project is using `@angular-devkit/build-angular:browser` as it's browser builder. Otherwise we might break applications that are using different builders.

Fixes #14389
2019-05-13 15:57:26 -07:00
Alan Agius
04b854956c fix(@schematics/angular): remove old GoogleBot browserslist setting
GoogleBot is now evergreen, we don't need to specialcase it: https://webmasters.googleblog.com/2019/05/the-new-evergreen-googlebot.html?m=1

Fixes #14364
2019-05-09 10:08:52 -07:00
Alan Agius
c1e65294e7 fix(@schematics/angular): older projects are not migrated to support differential loading
Fixes #14321
2019-05-07 16:14:50 -06:00
Alan Agius
0a6df3e824 fix(@schematics/angular): move and update existing src/browserslist
Older projects have their `browserslist` file under the `src` folder.

Fixes #14232
2019-04-23 10:31:18 -04:00
Emilio Martinez
5f44e642ee fix(@schematics/angular): align differential loading migration to browserslist template
Modifies differential loading migration script to align with the changes in 4d7581d to support Googlebot in browserslist by default.
2019-04-23 10:29:41 -04:00
Charles Lyding
458ba75e37 fix(@schematics/angular): migrate TS module type to esnext 2019-04-22 08:16:17 -07:00
Alan Agius
359d4f97cc feat(@schematics/angular): migrate existing ES5 projects to support differential loading
With this change, differential loading will be enabled as we add an non ever green browser and change the tsconfig script target to es2015.
2019-04-15 11:30:20 -07:00