631 Commits

Author SHA1 Message Date
Charles Lyding
a3811a7ad2 fix(@angular-devkit/core): ensure long workspace value changes are multiline 2019-04-16 11:23:48 -07:00
Minko Gechev
db3af22140 fix(@angular-devkit/architect): set proper name in TestingArchitectHost
The TestingArchitectHost registers the builders only using their name,
ignoring the package name. Later, when Architect looks up the builder
using the host, it's unable to find it.

You can find a reproduction
[here](https://github.com/mgechev/cli-builders-demo).
2019-04-16 09:42:18 -07:00
Renovate Bot
403579b020 build: update karma to version ~4.1.0 2019-04-16 09:40:58 -07:00
Charles Lyding
71ac097aff refactor(@angular-devkit/build-angular): standardize builder exports 2019-04-16 09:40:22 -07:00
Renovate Bot
5b4d1302bd build: update inquirer to version 6.3.1 2019-04-16 09:39:46 -07:00
Renovate Bot
609041815e build: update webpack to version 4.30.0 2019-04-16 09:39:27 -07:00
Alan Agius
5fc1f2499c feat(@angular-devkit/build-angular): deprecate es5BrowserSupport option in browser builder
In future, this will be determined from the list of supported browsers specified in the 'browserslist' file.
2019-04-16 08:44:19 -07:00
Charles Lyding
2b234546dd refactor(@angular-devkit/build-angular): add transform support to server builder 2019-04-15 11:32:02 -07:00
Charles Lyding
f1f49325f7 refactor(@angular-devkit/build-angular): standardize builder transforms 2019-04-15 11:32:02 -07:00
Alan Agius
5b6502b645 build: update ng-packagr and tslint 2019-04-15 11:09:13 -07:00
Alan Agius
da628bdda7 style: remove extra breakline from build file 2019-04-15 11:08:46 -07:00
Alan Agius
260dacfb41 test: add new architect api to golden files 2019-04-15 11:08:46 -07:00
Alan Agius
eac31541a1 test: add analytics to core golden files 2019-04-15 11:08:46 -07:00
Alan Agius
c319cd054e test: update tests large to cater for the bundle changes with differential loading 2019-04-15 11:03:09 -07:00
Alan Agius
7cc0988d4c fix(@angular-devkit/build-webpack): consider name when deduping emitted files
We need to consider the name when deduping files because a file such as `runtime.js` can be under multiples names because this file is a dependency of multiple entrypoints
2019-04-15 11:03:09 -07:00
Alan Agius
a29bf4ec36 feat(@angular-devkit/build-angular): enable differential loading for es2015 builds
With this change we turn on differential loading for projects that has es2015 as script target and still want to support browsers which that don't support ES2015.

Supported browsers are defined in the browserlist file.
2019-04-15 11:03:09 -07:00
Charles Lyding
f1c58bef97 fix(@angular-devkit/core): escape workspace json pointers
Internally, the JSON workspace support uses JSON pointers to represent change locations.  These need to be escaped to support slashes within a key.
2019-04-15 11:02:46 -07:00
Charles Lyding
66230b3c2e fix(@angular-devkit/core): allow scoped names for workspace projects
Library projects support scoped package names as project names.
2019-04-15 11:02:46 -07:00
Charles Lyding
13abfd01ec fix(@angular-devkit/schematics): fully support async rules 2019-04-15 11:02:46 -07:00
Charles Lyding
0d6a9f842c refactor(@angular-devkit/core): rename workspace namespace to workspaces
This avoids massive amounts of name conflicts between a commonly named variable of 'workspace' and the namespace
2019-04-15 11:02:46 -07:00
Charles Lyding
51e370cefc fix(@angular-devkit/core): add project type as a workspace special extension 2019-04-15 11:02:46 -07:00
Alan Agius
efccea6e1a feat(@angular-devkit/build-angular): wire up index generation for differential loading
This change wires up the index generation for multiple bundles, we however don't  enable differential loading for users just yet. As this will be done in a separate PR to change over specs to conform with the new files
2019-04-13 10:52:45 -07:00
Filipe Silva
b7dfdb8643 build: update to Angular 8.0.0-beta.12 2019-04-13 10:23:02 -07:00
Filipe Silva
b6b00ebc98 build: update typescript to version 3.4.3 2019-04-13 10:23:02 -07:00
Charles Lyding
0a59307c19 fix(@angular-devkit/architect): fix incorrect relative core import 2019-04-12 15:40:51 -07:00
Alan Agius
8432650efd test: fix flaky profile flag test large
This change addresses the flaky profile flag test large that sometimes caused `RangeError Maximum call stack size exceeded` inside regex
2019-04-12 12:21:41 -07:00
Renovate Bot
7fd6f6d501 build: update magic-string to version 0.25.2 2019-04-12 12:20:50 -07:00
Renovate Bot
0edc095cd3 build: update mini-css-extract-plugin to version 0.6.0 2019-04-12 12:20:05 -07:00
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
Charles Lyding
7d416103a9 feat(@angular-devkit/core): make new workspace API public 2019-04-12 11:45:48 -07:00
Charles Lyding
b22202c120 refactor(@angular-devkit/core): adjust readWorkspace type to support eventual diagnostics 2019-04-12 11:45:48 -07:00
Charles Lyding
7439faba12 feat(@angular-devkit/core): implement workspace JSON reader/writer 2019-04-11 10:17:29 -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
Alan Agius
55863a5644 feat(@angular-devkit/build-webpack): include entrypoints in emitted files
Entrypoints might have other files associate with them such as runtime.js, it is is paramount to keep the relation between them especially when this result is needed to generate an index file
2019-04-10 08:34:33 -07:00
Alan Agius
6dac8186f3 fix(@angular-devkit/build-webpack): add dot to file extension in emitted files 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
Charles Lyding
f9b4bdfa6e refactor(@angular-devkit/architect-cli): cleanup stable architect imports 2019-04-04 19:49:56 -07:00