533 Commits

Author SHA1 Message Date
Sarun Intaralawan
ae53cb1319 fix(@angular/cli): Angular Compiler CLI v5 requires TypeScript >= 2.4.2 2017-10-27 09:52:37 -07:00
Hans Larsen
8c10375164 release: 1.5.0-rc.5 2017-10-26 20:44:08 -07:00
Filipe Silva
61b06354e7 fix(@angular/cli): update real package dep
Fix #8202
2017-10-26 11:39:39 -07:00
Hans Larsen
701f97c4a8
release: 1.5.0-rc.4 2017-10-26 10:30:23 -07:00
Hans Larsen
cde02198de feat(@angular/cli): aot by default 2017-10-25 16:40:00 -07:00
Filipe Silva
fd1fefef8c fix(@ngtools/webpack): enforce typescript dep without peerDep 2017-10-25 10:32:57 -07:00
Filipe Silva
a28a967309 fix(@angular/cli): remove typescript dependency 2017-10-25 10:32:57 -07:00
Filipe Silva
8d6f826dd5 refactor(@angular/cli): remove AST utils
They aren't being used anymore
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
b1d5848c96 release: 1.5.0-rc.3 2017-10-23 22:18:33 -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
a167a3349a fix(@angular/cli): update uglifyjs-webpack-plugin to 1.0.0 2017-10-23 14:57:55 -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
5c93e107f8 fix(@angular/cli): update webpack to 3.8.1 2017-10-20 10:59:18 -07:00
Filipe Silva
a02892f7cd release: 1.5.0-rc.2 2017-10-19 16:41:41 -07:00
Hans Larsen
b5705b3833 fix(@angular/cli): update dependency to schematics angular 2017-10-19 16:30:07 -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
d339017707 release: 1.5.0-rc.1 2017-10-19 14:57:01 -07:00
Filipe Silva
7f6a2f8450 fix(@angular/cli): don't drop resource extentions
Fix #8099
2017-10-19 14:50:26 -07:00
Hans Larsen
46530b9398 fix(@angular/cli): show warning on TypeScript 2.5
It is not officially supported by Angular 5. Might be in 5.1 or above,
and will revisit then.
2017-10-18 20:33:18 +01: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
Hans Larsen
aa0cfc84c3 refactor: the schematics engine is really a singleton
Using different engines in Schematics is dangerous.
2017-10-16 18:37:25 +01:00
Hans Larsen
0d6aaf81ef refactor: simplify the schematic-run task a bit 2017-10-16 18:37:25 +01:00
Hans Larsen
9b3f2cd97f fix(@angular/cli): do not limit arguments of schematics
The schema of a Schematic can be any valid schema. The CLI was erroring if
it included anything else than strings or booleans.
2017-10-16 18:37:25 +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
Hans Larsen
00f34629b9 release: 1.5.0-rc.0 2017-10-12 14:13:38 -07:00
Filipe Silva
55a7498859 fix(@angular/cli): update webpack to 3.7.1
This contains an important performance fix for AOT (https://github.com/webpack/webpack/pull/5778).
2017-10-11 15:16:08 -07:00
Hans Larsen
d3998aed75 feat(@angular/cli): show more version information
Group all Angular packages that have the same version as @angular/core, and
also show information for schematics, devkit and others that might not be
in the package.json but still installed. Those versions are important.
2017-10-11 09:36:42 -07:00
Filipe Silva
65e40dc5d9 fix(@angular/cli): fix eval-sourcemap when sourcemap is undefined
Also add test to ensure it doesn't break.

Followup to #7919
2017-10-10 09:42:05 -07:00
Hans Larsen
5b0af09fc3 revert: "refactor: move all CLI-specific exceptions to different options (#7981)"
This reverts commit ae47b46563e2bcaf31aab9f992691e42d3e04eae.
2017-10-09 22:33:11 -07:00
Hans
ae47b46563 refactor: move all CLI-specific exceptions to different options (#7981)
We made too many shortcuts for passing data in and custom schematics could not
work properly.

This is temporary as we will likely move some more logic into schematics tooling
to be able to pass only the raw args and the CLI config, but for now this is
enough to unblock AngularMix.
2017-10-09 22:28:29 -07:00
Aditya Parab
3bbf175bab fix(@angular/cli): do not run e2e task if build fails
when ng e2e --serve=true is run and the build is not successful e2e task
should not be run

previously the e2e task was run even if build was a failure which will
obviously result in failure of test cases
now if errors are detected in build the e2e task will not be run
update docs as well to reflect this behaviour

Closes #7567
2017-10-06 09:59:47 -07:00
Joshua Wiens
04919f1ea4 fix(@angular/cli): update copy-webpack-plugin to 4.1.1
- This release picks up a ReDoS security patch in minimatch: https://nodesecurity.io/advisories/minimatch_regular-expression-denial-of-service
2017-10-06 09:29:09 -07:00
Mike Brocchi
7464499280 release: 1.5.0-beta.4 2017-10-05 20:50:25 -07: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
616a9f77c1 fix(@angular/cli): update url-loader to 6.0
This release addresses a Mime vulnerability: https://github.com/webpack-contrib/url-loader/releases/tag/v0.6.0
2017-10-05 10:19:26 -04:00
vsavkin
b6dfa8d52c feat(@angular/cli): make appRoot customizable 2017-10-04 14:33:43 -04:00
Mike Brocchi
60509ae54c fix(@angular/cli): Correct selecting custom schematic collection 2017-10-03 09:38:43 -04:00
Filipe Silva
d8e3d79a30 fix(@angular/cli): use webpack 3.6
An important fix (https://github.com/webpack/webpack/pull/5595) is included in 3.6 that should improve rebuild speeds.
2017-10-02 14:45:55 -04:00
Filipe Silva
d430abe9e3 feat(@angular/cli): always use new compiler with Angular 5 2017-10-02 12:52:02 -04:00
Filipe Silva
5c46987652 release: 1.5.0-beta.2 2017-09-28 18:58:06 -07:00
Mike Brocchi
116e294317 fix(@angular/cli): Refactor skip git flag into schematics
related to angular/devkit#167
2017-09-28 15:26:29 -07: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