123 Commits

Author SHA1 Message Date
Filipe Silva
e6f96fb744 fix(@angular-devkit/build-angular): use sourcemap object in karma plugin (#13584)
Followup to https://github.com/angular/angular-cli/pull/13062

Fix https://github.com/angular/angular-cli/issues/13580
2019-02-05 21:15:49 -08:00
Alan Agius
290b68c03a fix(@angular-devkit/build-angular): add missing open parenthesis in stacktrace (#13565)
Fixes #13558
2019-02-05 21:14:54 -08:00
clydin
fa6795a847 Fully resolve correct @ngtools/webpack loader (#13549)
* refactor(@ngtools/webpack): support import-based loader resolution

* fix(@angular-devkit/build-angular): ensure correct ngtools loader version

By using the the direct import approach, the loader will be guaranteed to originate from the same package version/location as the other `@ngtools/webpack` imports.

Fixes #13539
2019-02-05 21:12:31 -08:00
Alan
0c65664f03 fix(@angular-devkit/build-angular): error only when file is not found in non of the programs
At the moment, if a user provides multiple tsconfig, a file needs to be part of all compilations as otherwise it will fail.

This PR changes this behavour and as long as it's in one of the compilations it will not error out.

Fixes #13399
2019-01-23 10:12:22 -08:00
Filipe Silva
d536df95f2 feat(@angular-devkit/build-angular): update webpack to 4.29
This version (https://github.com/webpack/webpack/releases/tag/v4.29.0) includes a memory leak fix for assets (https://github.com/webpack/webpack/pull/8609, https://github.com/webpack/webpack/pull/8642).

Thanks to @meligy for pinging about this!
2019-01-22 09:39:19 -08:00
Charles Lyding
e3a148a74b feat(@angular-devkit/build-angular): conditional ES2015 polyfill loading 2019-01-15 14:17:55 -08:00
Alan Agius
a38db5dbf2 build: update webpack and postcss
Update `webpack` to `4.28.4` and `postcss` to `7.0.11`
2019-01-14 14:18:32 -08:00
調月奏
b972d57537 fix(@angular-devkit/build-angular): script chunk in angular.json return false then calling isInitial
This commit add the webpack chunk with it related chunkgroup or entrypoint
2019-01-14 12:53:52 -08:00
Alan
d10f125cc1 fix(@angular-devkit/build-angular): vendorSourceMap not being recognized when passed directly
Fixes #13414
2019-01-14 11:08:20 -08:00
Alan
b66e0bbc60 fix(@angular-devkit/build-angular): only show production warning when having either styles on scripts optimization turn on
Fixes #13415
2019-01-14 11:07:49 -08:00
Matthias Gaudin
59d9735193 fix(@angular-devkit/build-angular): add missing declaration types in build_angular schemas.
Fixes issue #13388
2019-01-14 11:06:00 -08:00
Hans Larsen
f9a311a66f fix(@angular-devkit/build-angular): prints a warning on --host on serve
The warning points to a solution for the WDS disconnect issue. Using --disable-host-check
will additionally warn the user that this might be insecure.

Fixes #11060
2019-01-14 11:03:52 -08:00
ManfredSteyer
dcc53d00cc feat(@angular-devkit/build-angular): add factory methods for WebpackBuilder and LoggingFactory 2019-01-08 13:49:10 -08:00
Alan Agius
6db7038c1b feat(@angular-devkit/build-angular): add support for port 0 when using protractor
Fixes #13129
2019-01-08 13:42:45 -08:00
Tiago Temporin
b233e8f59d refactor(@angular-devkit/build-angular): improve check port
Closes 8595
2019-01-08 13:36:55 -08:00
Filipe Silva
3b52fa43d3 fix(@angular-devkit/build-angular): resolve project root for fork process
Fix https://github.com/angular/angular-cli/issues/13113
2018-12-26 12:32:49 -08:00
Amadou Sall
18566b0442 fix(@angular-devkit/build-angular): remove circular dependencies warnings in ngfactory files
Fixes #11135
2018-12-19 10:26:18 -08:00
jonwrede
bc9d6eb3e7 fix(@angular-devkit/build-angular): remove invalid colors option of ProgressPlugin
ProgressPlugin has no option colors https://github.com/webpack/webpack/issues/8487
ng serve fails if progress is shown
2018-12-12 11:13:49 -08:00
Alan Agius
42962571be fix(@angular-devkit/build-angular): output non human readable lint result
At the moment, when the tslint formatted is non human readable, it is being fully silenced.

This changes this behaviour and only emit the formatted result.

Fixes #13173
2018-12-12 11:13:08 -08:00
Pascal Honegger
63a9bd464f docs: remove space for webpack-bundle-analyzer url 2018-12-10 13:41:12 -08:00
cexbrayat
4567aa1de4 style(@angular-devkit/build-angular): typo in stylesSourceMap 2018-12-10 13:39:25 -08:00
Alan Agius
43231d9507 refactor: script webpack plugin remove webpack 3 code 2018-12-06 11:44:55 -08:00
Alan Agius
18ff08dfb3 refactor: remove webpack 3 code from cleancss plugin 2018-12-06 11:44:42 -08:00
Alan Agius
eaad125da9 refactor: normalizeFileReplacements and normalizeAssetPatterns no longer use rxjs 2018-12-06 11:44:27 -08:00
Alan Agius
af67b49342 refactor: clean up how to generate normalized build options and improve type safety 2018-12-06 11:44:27 -08:00
Alan Agius
4f8a5b7a55 feat(@angular-devkit/build-angular): fine grain settings for optimization 2018-12-06 11:44:27 -08:00
Alan Agius
45b6df511f fix(@angular-devkit/build-angular): lint non human readable formatters produces invalid output
fixes #12674
2018-12-06 11:24:27 -08:00
Alan Agius
cd66d27170 refactor: deprecate evalSourceMap (#13063)
Missed a couple in https://github.com/angular/angular-cli/pull/12966
2018-11-30 14:06:55 -08:00
Alan Agius
8516d68213 feat(@angular-devkit/build-angular): fine grain settings for sourceMaps (#13062)
* feat(@angular/cli): update schema to match new `sourceMap`

* feat(@angular-devkit/build-angular): fine grain settings for sourceMaps

This PR add more control over which sourceMaps you want, Now you can enable sourceMaps for scripts only, styles only or both. Also we added another functionality which are hidden sourcemaps. These are normaly used for error reporting tools.

Fixes #7527
2018-11-30 13:11:52 -08:00
Charles Lyding
bd55bf01d5 refactor(@angular-devkit/build-angular): enable direct template loading 2018-11-18 10:41:47 -08:00
Alan Agius
282eb52e08 refactor: use buildOptions directly 2018-11-15 17:09:43 -08:00
Alan Agius
a38566f18e feat(@angular-devkit/build-angular): add option to allow outputting css resources to a different folder
Added `resourcesOutputPath` option so that CSS assets such as images and fonts are outputted to a subfolder in `dist`
2018-11-15 17:09:43 -08:00
Alan Agius
67630f5270 fix(@angular-devkit/build-angular): remove skipAppShell as it has no effect in browser builder
Closes #11478
2018-11-15 17:07:25 -08:00
Alan Agius
3c875a1148 refactor: deprecate evalSourceMap
This was previously done for build performance, however this is no needed anymore
2018-11-15 17:06:27 -08:00
Cédric Exbrayat
3c8b33ab3a fix(@angular-devkit/build-angular): add a base href to karma context (#12889)
This commits adds a base href value in the karma context iframe used to run unit tests.

It solves a very old issue in Angular https://github.com/angular/angular/issues/12295 where a unit test throws:

    No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.

even if the application is fine. This is because the `index.html` from Angular CLI contains a base href value, but not the Karma context iframe. So when adding a unit test with a testing module that imports a NgModule, for example `AppModule`, which itself imports `RouterModule`, the unit test used to throw an error (regression appeared in router 3.1).

That could be solved by either adding `RouterTestingModule` to the testing module, or by adding a provider `{ provide: APP_BASE_HREF, useValue: '/' }`, but required to understand the issue (see how many thumbs up there are on the original issue).

This solves the issue in a transparent way: developers won't even encounter the problem anymore.
2018-11-08 10:34:35 -08:00
Filipe Silva
4fd7310332 feat(@angular-devkit/build-angular): improve verbose output (#12833) 2018-11-06 22:44:39 -08:00
Filipe Silva
0909943259 test(@angular-devkit/build-angular): test karma on watch mode 2018-11-01 10:31:50 -07:00
Filipe Silva
cd0b01a2f9 feat(@angular-devkit/build-angular): stop karma gracefully
Followup to https://github.com/karma-runner/karma/pull/3153
2018-11-01 10:31:50 -07:00
Alan Agius
33781e1c19 docs: update descriptions for builders 2018-10-31 21:04:55 -07:00
Teamop
ef6d76e4a9 fix(@angular-devkit/build-angular): improve bundle size value displaying 2018-10-31 21:00:08 -07:00
Charles Lyding
9f114aee1e refactor(@angular-devkit/build-angular): cleanup/fix linting of webpack configs 2018-10-23 12:07:09 -07:00
Alan Agius
22dc791d96 fix(@angular-devkit/build-angular): error when using protocol-relative url
Fixes #12648
2018-10-23 11:58:29 -07:00
Alan Agius
7f0a7ce5df feat(@angular-devkit/build-angular): expose buildWebpackConfig method in KarmaBuilder
Closes #12447
2018-10-23 10:16:12 -07:00
Hsuan Lee
387d64c317 fix(@angular-devkit/build-webpack): skip transition property optimization
jakubpawlowicz/clean-css#1050 to be fixed before removing this option.

Fix #12408
2018-10-18 07:17:40 -07:00
Alan Agius
8b400f2f74 docs: improve command option descriptions 2018-10-18 07:10:59 -07:00
Filipe Silva
431df79a1b fix(@angular-devkit/build-angular): dont serve files on cwd (#12547) 2018-10-10 12:12:08 -07:00
Filipe Silva
916a616762 fix(@angular-devkit/build-angular): fix extractLicenses default (#12546)
It should be false so that it doesn't affect dev builds. The default production config has it set to true already.

Partially address #12432.
2018-10-10 12:11:46 -07:00
Alan Agius
150dd4755b fix(@schematics/angular): codeCoverage exclude is not being migrated (#12511)
Fixes #10936
2018-10-10 12:09:32 -07:00
Filipe Silva
023a67254e fix(@angular-devkit/build-angular): don't override missing options in protractor (#12507)
Fix #10697
2018-10-10 12:09:02 -07:00
Hans
4493d885da docs: start rewriting docs 2018-10-05 12:02:45 -07:00