138 Commits

Author SHA1 Message Date
Trotyl
941466aa02 fix(@angular/cli): not use buildOptimizer for JIT in prod 2017-11-20 09:13:55 -08:00
Yaroslav Admin
2607578113 fix(@angular/cli): set correct mainFields for ng test when targeting es2015
Added test fails without the fix with the error described in the linked issue.

Fixes #8379
2017-11-20 09:13:02 -08:00
Hans Larsen
def8f6294a fix(@angular/cli): update postcss loader and URL versions. 2017-11-17 12:46:13 -08:00
Alex Rickabaugh
7b4b2c78d4 feat(@angular/cli): support 5.0.0+ builds of @angular/service-worker 2017-11-06 17:30:38 +00:00
Charles Lyding
00ca690807 refactor(@angular/cli): centralize ES2015 support checks 2017-11-02 16:21:21 -04:00
Filipe Silva
453ff5ceb3 fix(@angular/cli): use JIT by default with ng5
Fix #8259
2017-10-31 15:16:22 -07:00
Filipe Silva
9bc9000a59 fix(@angular/cli): add polyfills manually in for ng5 unit tests 2017-10-30 16:09:59 -07:00
Filipe Silva
5f979d7840 fix(@angular/cli): don't search for lazy routes in Angular 5 ng test
Fix #8066
2017-10-30 16:09:59 -07:00
Filipe Silva
7d208b73ad fix(@ngtools/webpack): fix tsconfig parsing and rootfile list
Fix #8228
2017-10-30 16:09:59 -07:00
Mike Brocchi
1ba9eaecf5 fix(@angular/cli): Reenable node global 2017-10-30 14:49:33 -07:00
Sarun Intaralawan
082c570b62 fix(@angular/cli): use RxJS ES2015 path alias when targeting ES2015 2017-10-29 11:46:39 -07:00
Hans Larsen
cde02198de feat(@angular/cli): aot by default 2017-10-25 16:40:00 -07:00
Filipe Silva
a28a967309 fix(@angular/cli): remove typescript dependency 2017-10-25 10:32:57 -07:00
Filipe Silva
0eb25be6ff fix(@angular/cli): fix broken vendor chunk default
Followup to #8077
Fix #8169
2017-10-24 13:54:33 -07:00
Filipe Silva
fd82e1870e build: update chalk to 2.2
`chalk@2.2` is incompatible with `@types/chalk`.
2017-10-24 12:03:55 -07:00
Hans Larsen
7dfb3606d4 fix(@angular/cli): ng test should include test.ts and spec files 2017-10-23 22:08:30 -07:00
Filipe Silva
d9a4f88560 fix(@angular/cli): disable node global
The node only `global` object had been left in because it used to cause a build size regression with Angular.

This doesn't seem to be the case anymore so it should be removed because it causes problematic interactions with some libraries.

Fix #5804
Supersedes #7931
2017-10-23 14:57:55 -07:00
Filipe Silva
28e66f352d fix(@angular/cli): improve rebundling speed
Forcing TypeScript to output commonjs modules instead of es2015 modules drastically improves rebuild speeds, especially for AOT.

This PR forces this option on the following modes:
- `ng build --watch --target=development`
- `ng serve --target=development`
- `ng test --code-coverage=false`

Please note that `--target=development` and `--code-coverage=false` are the defaults.

See https://github.com/webpack/webpack/issues/5863 for the webpack issue.
2017-10-20 11:00:51 -07:00
Filipe Silva
d8fcb122e9 fix(@angular/cli): support rxjs 5.5 path alias
Blocked by an answer to https://github.com/ReactiveX/rxjs/issues/2979.

Fix #8096
2017-10-19 14:59:12 -07:00
Filipe Silva
7f6a2f8450 fix(@angular/cli): don't drop resource extentions
Fix #8099
2017-10-19 14:50:26 -07:00
Filipe Silva
62c858c39a fix(@angular/cli): update file-loader and url-loader
This should fix errors like the one below for 0.6.0:
```
URL Loader Invalid Options

options['name'] should NOT have additional properties
options.limit should be number
```
2017-10-18 12:26:05 -07:00
Filipe Silva
451f17cc04 fix(@angular/cli): strip decorators with Angular 5+ (#8077)
We feel build `--build-optimizer` is stable enough to not be experimental anymore.

This PR defaults `build-optimizer`  when using Angular 5+ on a production build with `--aot`.

It can still be turned off with `--no-build-optimizer` (or `--build-optimizer=false`).

Fix #8050
2017-10-18 19:49:49 +01:00
Filipe Silva
a8c8ac8edb fix(@angular/cli): add missing webpack-sources dep
`license-webpack-plugin` has a peer dependency on `webpack-sources` that was being satisfied via hoisting.

Fix #8075
2017-10-18 19:01:56 +01:00
Filipe Silva
a9d2b9a172 fix(@ngtools/webpack): rebuild only changed ngfactories
This should improve AOT compilation times.
2017-10-15 03:09:21 +01:00
Filipe Silva
d55740d4fa fix(@angular/cli): support existing tsconfig.spec.json on Angular 5 2017-10-05 13:16:07 -04:00
Filipe Silva
08b284ec62 feat(@angular/cli): use eval-source-map for serve on dev targets 2017-10-05 13:15:30 -04:00
Hans Larsen
aa02086d02 feat(@angular/cli): add a bundle dependencies flag
This flag allows people who know what theyre doing to bundle the
server build together with all dependencies. It should only be
used when the whole rendering process is part of the main.ts
or one of its dependencies.

Fixes #7903.
2017-10-05 09:56:11 -07:00
Filipe Silva
d430abe9e3 feat(@angular/cli): always use new compiler with Angular 5 2017-10-02 12:52:02 -04:00
Filipe Silva
335bd04be4 feat(@angular/cli): support xi18n with Angular 5 2017-09-28 21:12:31 +01:00
Filipe Silva
ecb91bed8f feat(@ngtools/webpack): add JIT support to AngularCompilerPlugin 2017-09-28 21:12:31 +01:00
Charles Lyding
8f73714a3a feat(@angular/cli): support subresource integrity validation 2017-09-26 16:27:30 +01:00
Filipe Silva
42d59d5e3b feat(@angular/cli): propagate --preserve-symlinks on TS options
With TypeScript 2.5 supporting the `--preserve-symlinks` option, we should set it on the compiler options when the flag is passed into the CLI (it already works for webpack).

See https://blogs.msdn.microsoft.com/typescript/2017/08/31/announcing-typescript-2-5/#user-content-the---preservesymlinks-compiler-flag for more info.
2017-09-25 18:01:55 +01:00
Garo Yeriazarian
29ec3c0658 feat(@angular/cli): add fallback for CSS variables (#7770)
Aim to resolve #7514 by including postcss-custom-properties. This will generate extra rules in CSS when a `var()` is used to allow for compatibility with older IE browsers that do not support the feature.
2017-09-25 12:10:09 +01:00
Charles Lyding
206064a399 fix(@angular/cli): ensure asset output is within the output path 2017-09-25 11:43:09 +01:00
Charles Lyding
8ebc37a1fd fix(@angular/cli): support app option for test command 2017-09-25 10:40:38 +01:00
Charles Lyding
546ac49d93 fix(@angular/cli): only set less-loader paths when present in config 2017-09-20 10:06:25 -04:00
Filipe Silva
939cd6c02d feat(@ngtools/webpack): add AngularCompilerPlugin 2017-09-13 16:21:16 -07:00
Filipe Silva
dea04b1d57 feat(@angular/cli): support ES2015 target 2017-09-13 12:26:00 -07:00
Filipe Silva
38a7ab47c6 fix(@angular/cli): fix asset watching
https://github.com/kevlened/copy-webpack-plugin is now used instead of the custom plugin, it has since implemented the features we needed.

Fix #7521
2017-09-05 21:45:19 +01:00
Dmitriy Shekhovtsov
0111f18b36 fix(@angular/cli): fix test coverage when testing linked libs (#7447) 2017-08-20 11:43:03 -07:00
Olivier Combe
e746369ca4 feat(@angular/cli): add AOT parameter missingTranslation
This adds the new parameter `missingTranslation` for AoT that was added in angular/angular/pull/15987 and that lets you define the MissingTranslationStrategy
2017-08-18 12:15:55 -07:00
Filipe Silva
e8f27f029a feat(@angular/cli): support sourcemaps and minification in scripts
Adds sourcemap and minification to javascript added via the `scripts` array in `.angular-cli.json`.

`script-loader` is no longer used, which should help with CSP since it used `eval`.

Scripts will no longer appear in the console output for `ng build`, as they are now assets instead of webpack entry points.

It's no longer possible to have the `output` property of both a `scripts` and a `styles` entry pointing to the same file. This wasn't officially supported or listed in the docs, but used to be possible.

Fix #2796
Fix #7226
Fix #7290

Related to #6872
2017-08-17 16:38:35 -04:00
Filipe Silva
505d69a13c feat(@angular/cli): update license-webpack-plugin
See https://github.com/xz64/license-webpack-plugin/issues/14, https://github.com/xz64/license-webpack-plugin/issues/13.

Fix #7203
2017-08-17 13:43:51 -04:00
Mike Brocchi
99eba9823c fix(@angular/cli): Revert change to config reading
The code before this change prevented reading of global configuration values.
2017-08-10 10:40:22 -07:00
Robin Dijkhof
b7b42ab95a fix(@angular/cli): prevent unicode character compression 2017-08-04 11:18:13 -07:00
JPeer264
260c781642 feat(@angular/cli): support includePaths for less (closes #7083) 2017-08-02 11:53:13 +01:00
Charles Lyding
e486d17798 refactor(@angular/cli): update TS type dependencies 2017-08-01 09:09:15 +01:00
Filipe Silva
5a84026a49 fix(@angular/cli): use 3 uglify passes with build-optimizer
PURE comments work best with 3 passes.
See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926 for context and an example.

Thanks to @kzc for highlighting this.
2017-07-31 20:10:27 +01:00
Charles Lyding
0888e82422 fix(@angular/cli): standardize output path behavior 2017-07-31 13:58:48 +01:00
Charles Lyding
a329014ddb fix(@angular/cli): prevent .cur file inlining
IE does not support data URI cursors.
2017-07-26 21:11:17 +01:00