790 Commits

Author SHA1 Message Date
Alan Agius
1730c79b99 fix(@angular-devkit/build-angular): exclude .map files from budget … (#12012)
* fix(@angular-devkit/build-angular): exclude `.map` files from budget calculations

Closes #11999
2018-08-27 18:12:04 -07:00
Filipe Silva
907fedc0b8 feat(@angular-devkit/build-angular): use terser instead of uglify-es (#11996)
Should help bring down prod build times, @SanderElias reported a ~60% reduction on his project.

Should fix #9340.
2018-08-27 10:26:30 -07:00
ajspera
c66f831a07 fix(@angular-devkit/build-angular): load style source maps inline so they work (#11729)
without this, the way styles are into the DOM breaks the default sourcemap option
postcss-loader option docs
https://github.com/postcss/postcss-loader#inline
fixes #9099
2018-08-27 10:24:26 -07:00
Charles Lyding
d202480a17 build: update/cleanup tslint rules & fix errors 2018-08-23 11:35:34 -07:00
Charles Lyding
6f38c77e05 feat(@angular-devkit/build-angular): support dart-sass for SASS/SCSS 2018-08-23 10:34:43 -07:00
Alan Agius
2d8443629e fix(@angular-devkit/build-angular): build should not hash lazy styles
When having `optimize` enabled the chunk Id doesn't match the bundle name, this we should use the chunk name instead

Closes #11772 and Closes #11704
2018-08-23 10:31:41 -07:00
Filipe Silva
6519745089 fix(@angular-devkit/build-angular): support inline javascript in less
Based on https://github.com/angular/devkit/pull/866
Fix https://github.com/angular/angular-cli/issues/10430
2018-08-22 11:52:49 -07:00
Alan Agius
2c858503ba fix(@angular-devkit/build-angular): tslint exclude for relative paths
Closes #11773
2018-08-21 11:17:47 -07:00
Alan Agius
9107f3cc4e docs: update optimization description (#11862)
At the moment, the definition might suggest that `optimization` takes some values other than `true` and `false`

Close: #11856
2018-08-15 15:58:22 -07:00
Robert Baker
e8f18b71b1 fix(@angular-devkit/build-angular): fixes hash comparison for service worker (#11865) 2018-08-15 15:51:03 -07:00
Corinna Cohn
f46869d4ed refactor(@angular-devkit/build-angular): mute internal reporters (#11238)
* refactor(@angular-devkit/build-angular): mute internal reporters when
other reporters are configured

internal Karma reporters should suppress output when user-defined
reporters are configured to prevent extrananeous error reporting for
failed tests

* refactor(@angular-devkit/build-angular): mute internal reporters when
other reporters are configured

internal Karma reporters should suppress output when user-defined
reporters are configured to prevent extrananeous error reporting for
failed tests
2018-08-14 07:29:40 -07:00
Charles Lyding
2cb4ac5f77 fix(@angular-devkit/build-angular): cleanup serviceworker direct import 2018-08-10 18:25:32 -07:00
Hans Larsen
cf9f86e743 feat(@angular/cli): add tree shaking of ngDevMode if compiling in prod
Whether Ivy is on or not does not matter.
2018-08-09 19:37:53 -04:00
Filipe Silva
8fd1040361 fix(@angular-devkit/build-angular): use process TTY as progress default
Fix #11195
2018-08-07 17:20:02 +01:00
Alexander Bobrov
b465930d42 refactor(@angular-devkit/build-angular): remove unnecessary stylus-loader workaround
Remove unnecessary stylus-loader workaround. Issue, from which this workaround originates, is resolved. Link to issue in stylus-loader: https://github.com/shama/stylus-loader/issues/189
2018-08-07 16:18:40 +01:00
Mike Brocchi
1370ac02bb fix(@angular-devkit/build-angular): Fix initial chunk logic for bundle budgets
fixes #11712
2018-08-03 12:39:38 -04:00
Alan Agius
764591cfb0 fix(@angular-devkit/build-angular): --vendor-source-map doesn't work on ng serve
Closes #11715
2018-08-02 08:55:53 -04:00
Charles Lyding
84ec3022c2 fix(@angular-devkit/build-angular): ensure failure with disabled AOT and enabled build optimizer
Fixes #11157
2018-07-30 08:07:03 -07:00
Alan Agius
9295217ce9 fix(@angular-devkit/build-angular): fix duplicate lint messages when having multiple tsconfigs
Closes #11633
2018-07-24 12:48:05 +01:00
Teamop
adb58617d9 fix(@angular-devkit/build-angular): should not log duplicate messages 2018-07-24 10:52:36 +01:00
George Kalpakas
e17a2edcc7 fix(@angular-devkit/build-angular): do not break with Jasmine's mock clock
Fixes #11164
Fixes #11626
2018-07-23 16:42:45 +01:00
Charles Lyding
1188e35b27 refactor(@angular-devkit/build-angular): minor CSS processing cleanup 2018-07-23 11:43:49 +01:00
Filipe Silva
290929c0bd fix(@angular-devkit/build-angular): only add ngsw after universal has rendered 2018-07-20 21:21:19 +01:00
Teamop
8475b3dadb fix(@angular-devkit/build_angular): use webpack 4 hooks for karma plugin 2018-07-16 09:34:55 -07:00
banjankri
09d019e733 changing order of event and coverage reporters
Fixing an issue when event reporter is executed before coverage reporter, which was causing the test command to pass even though unit testing coverage thresholds were not met.
2018-07-13 08:23:08 -07:00
Charles Lyding
c899c56364 refactor(@angular-devkit/build-angular): allow webpack plugin to use default host 2018-07-12 15:53:29 -07:00
Charles Lyding
b10c42c721 fix(@angular-devkit/build-angular): fix webpack hostadapter return types 2018-07-12 15:53:29 -07:00
Charles Lyding
56fb5ebce0 refactor(@angular-devkit/build-angular): use plugin for file replacement 2018-07-12 15:53:29 -07:00
Hans Larsen
483cbe2665 refactor: add tslint-sonarts and a lot of tslint rules
This should clean up the code a bit.

Note: at first I added the no-useless-cast rule, but after getting frustrated
with it (as it has many false positive), I decided to remove the rule but some
useless casts were removed so I let those in the PR.
2018-07-10 15:07:36 -07:00
Hans
cb588b68b3 fix(@angular-devkit/build-angular): use the internal buildWebpackConfig method
Instead of directly calling the browser builder. This means it can be overridden by
subclasses.
2018-07-10 12:55:27 -04:00
Filipe Silva
3529096a53 fix(@angular-devkit/build-angular): don't add hash to lazy styles
Fix #11235
2018-07-10 10:38:10 -04:00
Filipe Silva
5e7f7dea26 fix(@angular-devkit/build-angular): add missing deploy-url to server
Fix https://github.com/angular/angular-cli/issues/11426
2018-07-05 10:01:40 -04:00
Charles Lyding
fd14e4e162 fix(@angular-devkit/build-angular): add all current TSLint default formatters to schema 2018-07-02 09:48:05 -04:00
Alan Agius
3108ce30ab refactor: remove redundant error in catch 2018-07-02 08:20:59 -04:00
Teamop
0126721610 fix(@angular-devkit/build_angular): use webpack 4 hooks for karma plugin 2018-06-18 09:37:45 -04:00
Nico Jansen
a11dddf454 feat(angular_devkit): stop blocking karma after compilation error 2018-06-10 12:33:14 +01:00
Filipe Silva
55fd39940a fix(@angular-devkit/build-angular): pass in ContextElementDependency to ngtools/webpack
Should go in only together with "feat(@ngtools/webpack): allow passing in the right ContextElementDependency class".
2018-06-08 12:54:22 +01:00
Filipe Silva
182c890979 fix(@angular-devkit/build-angular): update webpack types 2018-06-08 12:54:22 +01:00
Vincent Pizzo
dc62ecb9b5 fix(@angular-devkit/build-angular): Allow less-loader to use webpack resolver
- If you look at https://github.com/webpack-contrib/less-loader#less-resolver, it states that
if you provide paths, it will use the less resolver. We should only use the less-resolver when
stylePreprocessorOptions.includePaths are actually given.
- This fixes issues where if in your less file you `@import "~@dependency/less-file";` it actually
resolves correct and when you import something like `@import "some-local-file";` it actually
recompiles when `ng build --watch` is ran.
2018-06-08 12:00:06 +01:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00