821 Commits

Author SHA1 Message Date
Filipe Silva
9d9d46bab3 refactor: use buildOptimizerLoaderPath 2019-07-11 01:18:26 +08:00
Filipe Silva
9b7f196a80 feat(@angular-devkit/build-angular): run Build Optimizer only on TS-generated files 2019-07-11 01:18:26 +08:00
Filipe Silva
7d9ead4261 feat(@angular-devkit/build-optimizer): add BuildOptimizerWebpackPlugin
Using this webpack allows determining in advance if files from a package should be skipped by the Build Optimizer loader.
2019-07-11 01:18:26 +08:00
Alan
b48dede4e0 fix(@angular-devkit/build-angular): fix sourcemaps paths
`output.devtoolModuleFilenameTemplate` is not used when `SourceMapDevToolPlugin`

671cb184e3/lib/SourceMapDevToolPlugin.js (L77)

Current stacktraces are not properly formatted
```
http://localhost:9876/_karma_webpack_/webpack:/src/app/dummy.component.spec.ts:36:76
```

With this change we wil change this to
```
http://localhost:9876/src/app/validation-directive.ts:13:23
```

This also allows users to click on the stacktrace in the browser and go to source.
2019-07-11 01:17:57 +08:00
Charles Lyding
8e97df3888 feat(@angular-devkit/build-angular): allow control of index output path
This allows the output path of an application's index HTML file to be controlled independently of the input file.  The output path for the file will be considered relative to the application's configured output path.  This allows an application to contain multiple input index files for different configurations and allow the output file to remain constant.  This also enables the placement of the index file in a subdirectory within the output path or change the name of the output index file neither of which was previously possible.
2019-07-10 04:34:20 +08:00
Alan Agius
85011b36d3 build: update angular packages to 8.1.0 2019-07-10 04:17:05 +08:00
Alan Agius
86266a39fa fix(@ngtools/webpack): resources path normalizations
Compiler host `readResource` is always called with POSIX seperators. However the `denormalizePath` method doesn't convert forward slashes to back slashes which causes `getModifiedResourceFiles` to return an empty `Set`.

We were also assuming that `_changedFiles` is an FS path which was not the case as it's original type is `Path`

Fix #15012
2019-07-10 04:17:05 +08:00
Renovate Bot
aadaf093e4 build: update caniuse-lite to version 1.0.30000981 2019-07-10 04:15:47 +08:00
Charles Lyding
445f3873b9 fix(@angular-devkit/build-angular): use query option to set sockJS path in dev-server
Fixes #15002
2019-07-10 04:15:30 +08:00
Charles Lyding
8752f21abd fix(@angular-devkit/build-optimizer): wrap classes with a let variable
Classes can technically be re-assigned.  By using a let variable this behavior will be retained and prevent potential runtime errors.

Fixes #14930
2019-07-10 04:14:07 +08:00
Charles Lyding
f6953f0123 fix(@angular-devkit/build-angular): only add module script types to actual module scripts
`ng serve` was errantly adding a module type to custom script bundles.  These scripts may contain ES5 and non-strict compatible code and can therefore not be marked as module scripts.  `ng build` already correctly operates in this fashion.

Fixes #14952
2019-07-10 04:13:43 +08:00
Joey Perrott
5da90e9075 ci: setup RBE on CI 2019-07-10 04:07:42 +08:00
Renovate Bot
bfb03d2ab2 build: update autoprefixer to version 9.6.1 2019-07-10 04:06:04 +08:00
Renovate Bot
072ddd3dbd build: update sass to version 1.22.3 2019-07-10 04:05:50 +08:00
vikerman
5ef0846214 fix(@angular-devkit/architect): one more fix for newest version of rxjs 2019-07-02 12:46:30 -07:00
Renovate Bot
64eff51be6 build: update semver to version 6.2.0 2019-07-02 12:44:06 -07:00
Renovate Bot
a41e94a568 build: update magic-string to version 0.25.3 2019-07-02 12:43:24 -07:00
Renovate Bot
5b372dc7dd build: update sass to version 1.22.2 2019-07-02 11:08:08 -07:00
Hans Larsen
fd512b8217 refactor: do not report errors if there is no errors to report 2019-07-02 11:07:13 -07:00
Hans Larsen
af6c6d41d5 refactor: add count of component to analytics 2019-07-02 11:07:13 -07:00
Alan
2b367be1c3 feat(@angular-devkit/build-angular): deprecate scripts and styles lazy option in favor ofinject
The lazy option inside the script and style option is confusing as this option doesn't lazy load a bundle but rather it doesn't inject/reference the script in the HTML. While this option is an enabler for lazy loading, the users will still need to handle on how how this bundle will be lazy loaded. There are also potential use cases beyond lazy loading for the option.

Closes #14814
2019-07-02 11:05:51 -07:00
Alan Agius
8754ecbf99 fix(@angular-devkit/build-angular): IE11 errors when using scripts and differential loading
Invert the builds so that es2015 scripts output don't override the es5 version.

Fixes #14777
2019-07-02 10:58:36 -07:00
Charles Lyding
99fa7bd71f test: add initial ivy large test support 2019-07-02 10:04:09 -07:00
vikerman
77d4dd9733 fix(@angular-devkit/architect): fix for newest version of rxjs 2019-07-01 16:36:43 -07:00
Renovate Bot
fb8deb06d3 build: update webpack to version 4.35.2 2019-07-01 11:39:56 -07:00
Renovate Bot
c22d0d0268 build: update caniuse-lite to version 1.0.30000979 2019-07-01 11:38:37 -07:00
Renovate Bot
821d2fa4a7 build: update open to version 6.4.0 2019-07-01 11:37:50 -07:00
Alan Agius
68227565ce feat(@angular-devkit/build-angular): add crossorigin options
This options allows to define the crossorigin attribute setting of elements that provide CORS support

Closes #14743
2019-06-27 15:12:43 -07:00
Alan
70a4cbe306 style: enable no-debugger and no-console tslint rules 2019-06-27 09:28:35 -07:00
Suguru Inatomi
4bfa4e0c06 fix(@angular-devkit/build-angular): add Symbol.iterator polyfill for legacy browsers 2019-06-27 09:26:31 -07:00
Renovate Bot
b02dba5925 build: update sass to version 1.22.1 2019-06-27 09:24:03 -07:00
Hans Larsen
46ade49a2f feat(@angular/cli): report RAM in gigabytes instead of megabytes
Otherwise its too much noise. Some people have weird MB count probably due to
containers and VMs.
2019-06-27 09:17:26 -07:00
Renovate Bot
3e5e2574c7 build: update caniuse-lite to version 1.0.30000978 2019-06-26 11:22:58 -07:00
c4605
3aee401397 fix(@angular-devkit/schematics): fix use install subcommand when override package manager to yarn 2019-06-26 11:21:09 -07:00
Alan
44a0d0fb4e fix(@angular-devkit/build-angular): add type="module" on script tags when differential loading will be enabled
Fixes #14747
2019-06-26 11:17:21 -07:00
Renovate Bot
a5e6b10c40 build: update caniuse-lite to version 1.0.30000977 2019-06-25 13:29:14 -07:00
Renovate Bot
708259bd22 build: update sass to version 1.22.0 2019-06-25 13:29:00 -07:00
Hans Larsen
a5afd7b2b6 fix(@angular-devkit/build-angular): force event category to be something
If it is empty (or undefined), the Universal Analytics package will not send events.
2019-06-25 13:25:23 -07:00
Alan Agius
572d0055fb fix(@angular-devkit/build-angular): add @angular/compiler-cli version 8.1.0-next.0 as peerDependency 2019-06-25 10:31:36 -07:00
Renovate Bot
ce578ae9b3 build: update semver to version 6.1.2 2019-06-24 17:31:20 -07:00
Renovate Bot
bbb12e3b86 build: update inquirer to version 6.4.1 2019-06-24 17:30:28 -07:00
Renovate Bot
1df5eeb3e5 build: update caniuse-lite to version 1.0.30000976 2019-06-24 17:27:44 -07:00
FDIM
af2b1b55dc feat(@angular-devkit/build-angular): option to build and test only specified spec files 2019-06-24 17:27:25 -07:00
Alan
d43ca041e2 fix(@angular-devkit/build-angular): re-order reporters to set code coverage at the very end 2019-06-20 10:58:54 -07:00
ukrukarg
ba44d944b0 feat(@angular-devkit/schematics): Add registerCollection to SchematicsTestRunner
Fixes #14833
2019-06-20 10:57:24 -07:00
Renovate Bot
a88dce5b89 build: update inquirer to version 6.4.0 2019-06-20 10:56:58 -07:00
Renovate Bot
bf4d97254e build: update webpack to version 4.35.0 2019-06-20 10:56:43 -07:00
Alan
10200f1395 fix(@angular-devkit/build-angular): remove certain redundant build steps from second build in differential loading
With this change we remove styles compilation and copying of assets for the second build when differential loading is enabled.

This should improve the build times for larger applications.
2019-06-19 17:08:25 -07:00
Alan Agius
0701afc31f fix(@angular-devkit/build-angular): browser builder should not swollow error messages
Closes #14813
2019-06-19 17:07:53 -07:00
Alan
c7135fae35 fix(@angular-devkit/build-angular): browser builder should not swollow error messages
Closes #14813
2019-06-19 17:07:27 -07:00