347 Commits

Author SHA1 Message Date
Renovate Bot
a686eabed9 build: update webpack-dev-server to version 3.3.1 2019-04-12 12:18:05 -07:00
Renovate Bot
49fb9ec0d7 build: update source-map-support to version 0.5.12 2019-04-12 12:17:50 -07:00
Alan Agius
5f13d06cb3 fix(@angular-devkit/build-angular): ignore bundle budgets when running karma or devserver
Fixes #14100
2019-04-12 12:17:35 -07:00
Charles Lyding
bd16cbc98d refactor(@angular-devkit/build-angular): use webpack config utilities in browser builder 2019-04-12 12:17:21 -07:00
Renovate Bot
c89dd3090e build: update browserslist to version 4.5.4 2019-04-10 08:45:18 -07:00
Filipe Silva
323c8838ff feat(@angular-devkit/build-angular): support web workers in karma builder
Followup to https://github.com/angular/angular-cli/pull/13700, the karma builder did not get the same support but it should.
2019-04-10 08:43:14 -07:00
Filipe Silva
609acf4cac fix(@angular-devkit/build-angular): verify chunk files exist before accessing
`chunk.files[0]` can be undefined, which caused  `chunk.files[0].endsWith` to fail.
2019-04-10 08:42:39 -07:00
Charles Lyding
c8e0c35e60 feat(@angular-devkit/build-angular): support karma builder webpack transformation 2019-04-10 08:40:20 -07:00
Charles Lyding
a063e26e86 refactor(@angular-devkit/build-angular): minor cleanup of karma builder 2019-04-10 08:40:20 -07:00
Renovate Bot
2acbd27827 build: update sass to version 1.18.0 2019-04-10 08:38:16 -07:00
Alan Agius
0baa9c879e feat(@angular-devkit/build-angular): improve handling of nomodules and modules in index generation
Since when having differential loading we already know which files originated from which build. We shouldn't need to merge and transform this data.

With this change, the index generator accepts a couple of new inputs.
1. `files` - used for Js and CSS files which require nomodule nor module attributes
2. `moduleFiles` - Js files that need to have a `module` attribute
3. `noModuleFiles`  - Js files that need to have a `nomodule` attribute
4. `entrypoints` - used to sort the insertion of files in the HTML file
2019-04-10 08:34:33 -07:00
ManfredSteyer
32a096f3f0 feat(@angular-devkit/build-angular): differential loading
This PR adds differential loading to the browser builder. First, it checks if differential loading is needed. This is the case if the compilation target is ES2015 while the browserslist points to ES5 browsers.

For providing differential loading, it calls the methods for creating the webpack config for each compilation target (e. g. ES5 and ES2015). The needed differences between those configurations are defined using parameters also added by this PR. Then it calls webpack for each of them and merges the results

This feature is currently hidden behind a flag. To activate it, set the differentialLoading flag in browser/index.ts.
2019-04-09 09:25:37 -07:00
Renovate Bot
4b3c6630b4 build: update autoprefixer to version 9.5.1 2019-04-08 12:02:33 -07:00
Renovate Bot
6c44a8f009 build: update open to version 6.1.0 2019-04-08 11:40:41 -07:00
Renovate Bot
28498b60a2 build: update core-js to version 3.0.1 2019-04-06 08:01:10 -07:00
Sam Thorogood
9aefe8371c feat(@angular-devkit/build-angular): add safari-nomodule snippet 2019-04-04 19:52:33 -07:00
Renovate Bot
95675b0936 build: update jasmine-core to version ~3.4.0 2019-04-04 19:47:34 -07:00
Renovate Bot
e17a97b4f2 build: update webpack-dev-middleware to version 3.6.2 2019-04-04 19:47:03 -07:00
Charles Lyding
246abb3935 feat(@angular-devkit/build-angular): update to core-js 3
Fixes  #13954
2019-04-04 09:28:02 -07:00
Alan Agius
a5bdddb862 test: change large specs to not use @angular/http 2019-04-04 09:27:35 -07:00
Alan Agius
d917c7bca6 build: update to angular version 8.0.0-beta.11 2019-04-04 09:27:35 -07:00
Charles Lyding
76492141d2 refactor(@angular-devkit/build-angular): cleanup architect imports 2019-04-03 16:28:16 +02:00
Renovate Bot
40b62b026d build: update sass to version 1.17.4 2019-04-03 16:27:36 +02:00
Charles Lyding
01b53a92e6 fix(@angular-devkit/build-angular): update utility function output type 2019-04-02 10:31:24 -07:00
Charles Lyding
c6d145bf32 test(@angular-devkit/build-angular): cleanup unused imports 2019-04-02 10:31:24 -07:00
Charles Lyding
3d9200a3c8 refactor(@angular-devkit/build-angular): use build-webpack stable API module imports 2019-04-02 04:50:08 -07:00
Filipe Silva
6e0a040ad9 refactor(@angular-devkit/build-angular): support web worker in new architect 2019-04-02 04:49:34 -07:00
Filipe Silva
ed0e6aab57 feat(@angular-devkit/build-angular): support TS web workers 2019-04-02 04:49:34 -07:00
Filipe Silva
1810394c3a test(@angular-devkit/build-angular): test worker bundling 2019-04-02 04:49:34 -07:00
Jason Miller
c630d5f811 feat(@angular-devkit/build-angular): support module web workers.
Supports new Worker(...,{type:module}) using github.com/googlechromelabs/worker-plugin
2019-04-02 04:49:34 -07:00
Alan Agius
d668889fae refactor: remove console logs from analytics
This cause errors to be printed out multiple times
2019-04-02 04:46:36 -07:00
ManfredSteyer
a5364a43c2 feat(@angular-devkit/build-angular): write index.html for differential loading
Currently, the IndexHtmlWebpackPlugin generates the index.html file *during* bundling. However, to support differential loading the builder must do this *after* bundling because only then we know the produced files for ES5, ES2015, etc.
Hence, this extracts the IndexHtmlWebpackPlugin logic to a helper function which can still be called by IndexHtmlWebpackPlugin for use cases not affected by differential loading (e. g. ng serve) as well as directly by the builder.
https://docs.google.com/document/d/13k84oGwrEjwPyAiAjUgaaM7YHJrzYXz7Cbt6CwRp9N4/edit?ts=5c652052
2019-04-02 04:46:15 -07:00
Andriy Pyvovarchuk
50cce668cc refactor: replace deprecated package opn with open 2019-04-01 10:53:12 -07:00
Alan Agius
4595d9c598 build: update angular packages to 8.0.0-beta.10 2019-04-01 02:54:41 -07:00
Minko Gechev
9a1f48f990 feat(@schematics/angular): update to codelyzer 5
This PR also updates the hello world sample app and migrates its
`tslint.json` file.
2019-03-31 09:56:19 -07:00
Charles Lyding
36d78debdb fix(@angular-devkit/build-angular): ensure correct dev server path with public host option
If a custom path is provided the webpack dev server client drops the sockjs-node segment. This adds it back so that behavior is consistent when using a custom URL path.

Fixes #13627
2019-03-29 16:36:50 -07:00
Alan
7915a582cf fix(@ngtools/webpack): changes in non module code are not picked up when using barrel files
Fixes #13975
2019-03-29 14:47:03 -07:00
Filipe Silva
8e3e755995 feat(@angular-devkit/build-angular): add experimentalImportFactories option 2019-03-29 14:39:48 -07:00
Filipe Silva
bc7da5d076 feat(@ngtools/webpack): support import syntax for loadChildren with ViewEngine
This feature ONLY matches the format below:
```
loadChildren: () => import('IMPORT_STRING').then(m => m.EXPORT_NAME)
```

It will not match nor alter variations, for instance:
- not using arrow functions
- not using `m` as the module argument
- using `await` instead of `then`
- using a default export (https://github.com/angular/angular/issues/11402)

The only parts that can change are the ones in caps: IMPORT_STRING and EXPORT_NAME.
2019-03-29 14:39:48 -07:00
Charles Lyding
ba21c855c0 refactor(@angular-devkit/build-angular): cleanup stable architect API builder file names 2019-03-29 14:37:35 -07:00
Charles Lyding
dd058a2cc3 refactor(@angular-devkit/build-angular): remove experimental architect builders 2019-03-29 14:37:35 -07:00
Charles Lyding
1327ee3ec9 test(@angular-devkit/build-angular): update service worker browser tests to stable API 2019-03-29 14:37:35 -07:00
Charles Lyding
61717b7c27 test(@angular-devkit/build-angular): update svg browser test to stable API 2019-03-29 14:37:35 -07:00
Hans Larsen
20103a35d6 fix(@angular-devkit/build-angular): fix countOccurences
And add testing for it.
2019-03-28 13:28:41 -07:00
Hans Larsen
00fb4cea4f feat(@angular-devkit/build-angular): use builder name for category
So we can differentiate between dev-server, browser, karma, etc.
2019-03-28 13:28:41 -07:00
Hans Larsen
a2ff62e2b0 feat(@angular-devkit/build-angular): add analytics for build
Add a few metrics that we want to capture in the build.
2019-03-28 13:28:41 -07:00
Charles Lyding
7b1bb478b5 fix(@angular-devkit/build-angular): use package import for build-webpack in server builder 2019-03-27 16:33:39 -07:00
Renovate Bot
688ed6aca9 build: update zone.js to version ^0.9.0 2019-03-27 12:23:59 -07:00
Renovate Bot
a516f8ad91 build: update semver to version 6.0.0 2019-03-27 10:05:43 -07:00
Charles Lyding
a011863477 feat(@angular-devkit/build-angular): implement stable architect API for extract-i18n 2019-03-25 12:39:05 -07:00