88 Commits

Author SHA1 Message Date
Alan Agius
ae4dc05319 fix(@angular-devkit/build-angular): karma builder now serves global styles
Closes: #11072
2018-09-26 15:06:13 -07:00
Andrey Sitnik
5c6c704890 Disable Autoprefixer Grid 2018-09-26 15:17:46 -04:00
Alan Agius
a161e5f4d0 refactor(@angular-devkit/build-angular): clean up overriding of options 2018-09-26 14:16:43 -04:00
Charles Lyding
9a793494dc build: update rxjs to 6.3 2018-09-26 12:57:56 -04:00
Charles Lyding
3034019ba9 build: update webpack types 2018-09-26 08:54:33 -04:00
Charles Lyding
228a2edd4a fix(@angular-devkit/build-angular): fully resolve project modules 2018-09-26 08:53:14 -04:00
Filipe Silva
048366b3ee feat(@angular-devkit/build-angular): add profile option to browser builder
This should help users send us profile logs for builds that take too long.
2018-09-26 08:24:07 -04:00
Alan Agius
1bf96348bc fix(@angular/cli): --verbose is an unknown option of serve
Closes #11086
2018-09-26 08:17:33 -04:00
majo44
c9dab34fbb feat(@angular-devkit/core): support of tsx files in aot mode (#11407) 2018-09-25 16:50:02 -04:00
S K
4efa26a004 feat(@angular-devkit/build-angular): update license-webpack-plugin
Closes #11536
2018-09-24 13:24:48 -07:00
Charles Lyding
30f8352ca2 feat(@angular-devkit/build-angular): automatically include reflect metadata polyfill for JIT
The reflect metadata polyfill is only required by Angular when using JIT.  Since it is unanticipated it would be needed when using AOT, including it when using AOT only serves to unnecessarily increase application file sizes.
JIT is not recommended for production use.  However, if an application uses JIT in production and an alternate reflect metadata polyfill is preferred (core-js/es7/reflect is currently used), then TypeScript path mapping can be used to override the polyfill.  As an example, the following will allow the usage of the `reflect-metadata` package in lieu of the default:
```
    "paths": {
      "core-js/es7/reflect": ["node_modules/reflect-metadata"]
    }
```
2018-09-24 13:23:57 -07:00
Charles Lyding
72a65ddf5e feat(@angular-devkit/build-angular): update webpack dependencies
memory leak fix, security vulnerability package updates, hash integrity fix, and other minor defect fixes
2018-09-19 11:34:55 -07:00
Charles Lyding
80b94ad2f4 refactor(@angular-devkit/build-angular): correct implicit returns 2018-09-19 11:32:39 -07:00
Charles Lyding
98c2747dd5 fix(@angular-devkit/build-angular): fully remove url inlining 2018-09-18 13:57:51 -07:00
Alan Agius
fce686d965 feat(@angular-devkit/build-angular): enable sourcemaps by default when using karma
Closes #12282
2018-09-18 11:34:44 -07:00
Charles Lyding
b403aa69c1 test(@angular-devkit/build-angular): improve resilience of watch rebuilds 2018-09-10 12:30:49 -07:00
Charles Lyding
96dc506038 test(@angular-devkit/build-angular): expand polling success threshold
polling is highly dependent on CPU and IO; with shared CI machines this can cause high variability
2018-09-10 12:30:49 -07:00
Alan Agius
b8b36ba339 refactor: pin down all direct dependencies
This is so that CLI users get the same direct dependency versions that were tested on the CI.
2018-09-07 11:01:50 -07:00
Alan Agius
e16c8bbe87 fix(@angular-devkit/build-angular): set the proper type to fileReplacements
Closes #11294
2018-09-06 10:51:04 -07:00
Alan Agius
5007a19ad9 refactor(@angular-devkit/build-angular): clean up style webpack config
Clean up several parts of the styles config and also removed the dependency on `postcss-url`
2018-09-06 08:51:22 -07:00
Alan Agius
bdebc9e0cb feat(@angular-devkit/build-angular): add ignore option to assets object
You can now provide an array of globs to `ignore` from copying

Closes #11850
2018-09-06 08:36:16 -07:00
Alan Agius
a723310e94 feat(@angular-devkit/build-optimizer): update typescript dependency to 3.0.x 2018-09-06 08:28:16 -07:00
Alan Agius
88804b63dc build: update repo to use typescript 3.0.x
Updated `@angular/<packages>` to `^7.0.0-beta.4` since we need this to be able to run the tests. Due to the `@angular/compiler` in `v6` doesn't support `typescript` `3.0.x`.
2018-09-06 08:28:16 -07:00
clydin
7e63dd791b build: limit rxjs to 6.2.x due to a defect in 6.3.0 (#12048) 2018-08-30 15:33:31 -07:00
Filipe Silva
41d20873b1 fix(@angular-devkit/build-angular): remove workaround for uglify-es (#12033)
Fix https://github.com/angular/angular-cli/pull/11996#issuecomment-416514015
2018-08-29 09:27:39 -07:00
Alan Agius
a2342b6a75 feat(@angular-devkit/build-angular): remove inlining of assets in css (#12027)
BREAKING CHANGE: Assets under 10Kib are not longer inlined in css
2018-08-29 09:27:21 -07:00
clydin
67e32a8f25 fix(@angular-devkit/build-angular): improve bundle size value parsing (#12026)
Fixes #12013
2018-08-29 09:26:52 -07:00
Alan Agius
7eb080362f fix(@angular-devkit/build-angular): only collect coverage from files under sourceRoot (#11974)
In some cases when having libraries within the workspace this is causing a `Maximum call stack size exceeded`, Also for libraries coverage should be collected with the respective `ng test`

Closes #11934
2018-08-28 13:50:25 -07:00
Alan Agius
7f67c64be1 fix(@angular-devkit/build-angular): fixes cors issues with karma (#11970)
Checking the stack trace in the issue one can noticed that the paths for the components are being served via the `webpack://` protocol which is causing a `cors` issue between `http` and `webpack` protocol

This PR removed the `webpack` protocol from the `devtoolModuleFilenameTemplate`

Closes #11966
2018-08-28 13:10:43 -07:00
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
Hans
62e72fea38 fix(@angular-devkit/architect): explicitly type functions
Closes: #11992
2018-08-27 18:11:07 -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
Sibiraj
eb87002a12 feat(@angular-devkit/build-angular): update karma to v3 2018-08-17 10:39:27 -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
Filipe Silva
711d0c0ef4 fix(@angular-devkit/build-angular): update node-sass (#11831)
See https://github.com/sass/node-sass/issues/2355 for context.

Fix #11699
Related to #10963
2018-08-15 15:57:34 -07:00
Filipe Silva
af137809e8 fix(@angular-devkit/build-angular): update less (#11709)
Uses minimum versions listed in https://github.com/webpack-contrib/less-loader/issues/252#issuecomment-406416493

Fix #10899
2018-08-15 15:51:48 -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
c729b0e7d9 build: use yarn workspaces 2018-08-10 18:25:32 -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
Alan Agius
1a255e6e4e build: bump TypeScript to 2.9 2018-08-04 16:23:37 +01:00