24 Commits

Author SHA1 Message Date
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
Hans Larsen
cde02198de feat(@angular/cli): aot by default 2017-10-25 16:40:00 -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
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
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
Charles Lyding
8ebc37a1fd fix(@angular/cli): support app option for test command 2017-09-25 10:40:38 +01:00
Filipe Silva
939cd6c02d feat(@ngtools/webpack): add AngularCompilerPlugin 2017-09-13 16:21:16 -07:00
Charles Lyding
0888e82422 fix(@angular/cli): standardize output path behavior 2017-07-31 13:58:48 +01:00
FrozenPandaz
6f23636323 feat(@angular/cli): add ability to build bundle for node and export lazy route map 2017-07-20 15:01:25 -07:00
Filipe Silva
826c634090 feat(@angular/cli): add flag to control chunk naming
Followup to #6881

Allow controlling chunk naming via the `--named-chunks` flag, which can be set on `.angular-cli.json` as well.

Defaults to true in development, false in production.
2017-07-19 13:53:07 -04:00
Filipe Silva
9ec5b4ed66 feat(@angular/cli): add build-optimizer support
Adds the new flag `--build-optimizer` (`--bo`), usable only with `--aot` (or `--prod` since it auto enables `--aot`).

This feature is experimental, and may not work correctly on your project. Should it work, total bundle size should go down. Savings are heavily dependent on the project.

See https://github.com/angular/devkit/tree/master/packages/angular_devkit/build_optimizer for details about all the optimizations applied.

Usage: `ng build --prod --build-optimizer`. Disabling the vendor chunk has been shown to improve total savings, and is done automatically when `--bo` is specified unless `--vendor-chunk` has a value.

Please let us know if using `--build-optimizer` breaks your project so we can improve it further. Repos are very welcome.
2017-07-19 12:27:23 -04:00
Filipe Silva
7f280499cd feat(@angular/cli): add build defaults to config
Adds following defaults to `.angular-cli.json` under `defaults`: `sourcemaps`, `baseHref`, `progress`, `poll`, `deleteOutputPath`, `preserveSymlinks`, `showCircularDependencies`.

They can be set via `ng set defaults.build.KEY = VALUE`.

Also removes `apps.0.showCircularDependencies`. This is not a breaking chance since it was only added in 1.3.0-beta.0.

Followup to https://github.com/angular/angular-cli/pull/6884#discussion_r125533830.
2017-07-06 15:03:19 -07:00
Filipe Silva
28e4114785 feat(@angular/cli): followup changes to circular dependency detection
Flag is now positive instead of negative and shorter, and can now be set on commands as well (`--show-circular-dependencies`).

Dependency was also added to eject as per https://github.com/angular/angular-cli/pull/6813#issuecomment-311567074.
2017-06-29 11:18:39 -07:00
laco0416
692b378770 feat(@angular/cli): add baseHref property to appConfig 2017-06-12 09:44:44 -04:00
Hans Larsen
d94040b2de fix(@angular/cli): sourcemaps should be the main option, sourcemap an alias 2017-03-14 15:32:00 -07:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Filipe Silva
69e6c717fd feat(@angular/cli): use separate tsconfigs
This PR adds tsconfigs for each separate application:
- `src/tsconfig.app.json`: configuration for the Angular app.
- `src/tsconfig.spec.json`: configuration for the unit tests. Defaults to the Angular app config.
- `e2e/tsconfig.e2e.json`: configuration for the e2e tests.

There is an additional root-level `tsconfig.json` that is used for editor integration.

For Angular version 4 projects, these tsconfigs will use inheritance since it's available with TypeScript 2.1.

This is not a breaking change. Existing projects should not be affected.
2017-02-22 19:32:00 +00:00
Filipe Silva
1655e51e7e feat(@angular/cli): hash loaded media by default (#4878)
Currently dev builds use `--output-hashing=none` by default.

This can cause image resources to be overwritten in dev if they have the same same.

This wasn't much of a problem before when only images in global CSS would be treated as resources, but now component css also does that.

Production builds are unaffected since they already use `--output-hashing=all`.

BREAKING CHANGE: dev builds will hash relative resources from CSS (images, etc).
2017-02-22 15:52:11 +00:00
Filipe Silva
3bba4cb4da feat(@angular/cli): use same webpack config for karma
Close #4851
Fix #3605
Fix #4850
Fix #4876
2017-02-22 11:54:06 +00:00
Mike Brocchi
809340a8f0 refactor(@angular/cli): rename config file from angular-cli.json to .angular-cli.json (#4681)
BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
2017-02-15 23:14:18 -05:00
Filipe Silva
b8328dca55 refactor(commands): turn .run commands into tasks (#4251) 2017-02-08 11:49:05 +00:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00