49 Commits

Author SHA1 Message Date
Charles Lyding
8a7949c72c refactor(@angular/cli): improve invalid parameter error messages 2018-04-11 11:56:03 -04:00
Filipe Silva
5380b72f75 fix(@angular/cli): check Node, Angular and RxJs minimum versions for CLI v6 2018-03-26 21:35:08 +01:00
Filipe Silva
2bf6838374 test: re-enable build tests 2018-03-26 17:50:06 +01:00
Filipe Silva
41320bf8fd feat(@angular/cli): use workspace for architect commands 2018-03-19 11:26:38 -07:00
Filipe Silva
38c8463280 feat(@angular/cli): use architect 2018-03-16 10:59:05 -07:00
Mike Brocchi
9f77c868d2 feat(@angular/cli): Update command runner.
This change removes the dependency of the ember-cli command structure.
2018-03-06 17:57:38 -05:00
Charles Lyding
56b5a971e5 refactor(@angular/cli): remove unneeded production webpack config partial 2018-02-26 19:47:06 +00:00
Filipe Silva
605e4feab6 fix(@angular/cli): remove forced commonjs
Followup to https://github.com/angular/angular-cli/pull/8128
Fix https://github.com/angular/angular-cli/issues/9058
2018-02-25 12:21:22 +00:00
tomastrajan
d53f45896b feat(@angular/cli): add trailing slash to deployUrl when missing
Closes #7295
2018-01-03 22:14:26 +00:00
Mike Brocchi
c573d91dad fix(@angular/cli): Add app-shell error msg
If configured app shell app is not configured as platform server throw an error
2017-11-29 21:14:19 +00:00
Mike Brocchi
8c0779f6a3 feat(@angular/cli): Add ability to build AppShell 2017-11-22 22:35:31 -08:00
Yaroslav Admin
4774049e84 feat(@angular/cli): disable progress when running outside TTY
The default value is changed from `true` to `progress.stdout.isTTY`. It
still has lower priority than value specified by command line flag or in
the .angular-cli.json config.

Fixes #8148
2017-11-21 11:51:53 -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
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
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
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
8f73714a3a feat(@angular/cli): support subresource integrity validation 2017-09-26 16:27:30 +01:00
Hans Larsen
2b982d2cba refactor: fix comments to the PR 2017-09-13 16:21:16 -07:00
Filipe Silva
939cd6c02d feat(@ngtools/webpack): add AngularCompilerPlugin 2017-09-13 16:21:16 -07:00
Filipe Silva
022ed2ce71 fix(@angular/cli): verify Angular/TS version combos 2017-09-07 16:32:41 +01: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
kevinphelps
c873e0358d fix(@angular/cli): use correct property names for build config defaults 2017-08-04 14:42:42 -07:00
Filipe Silva
92902c6094 fix(@angular/cli): remove -bo alias for --build-optimizer
/cc @StephenFluin
2017-08-02 21:25:37 +01: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
Kevin Phelps
26e94339ba feat(@angular/cli): make the common chunk optional
- Add a "--no-common-chunk" build option for disabling the common async chunk.
- The existing behavior is maintained by default.

closes #7021
2017-07-19 10:13:24 -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
Sumit Arora
e72693a948 feat(@angular/cli): remove deduped licenses 2017-06-02 19:19:44 +01:00
Charles Lyding
af3e6b22f4 feat(@angular/cli): add option to preserve symlinks for module resolution 2017-06-01 11:47:19 +01:00
Filipe Silva
91cbe3375f refactor(@angular/cli): use this.project instead of cliProject 2017-05-24 13:39:30 -07:00
Filipe Silva
8bf040b7e3 feat(@angular/cli): add flag to not delete output path
Fix #5925
Fix #6193
2017-05-08 14:27:59 +01:00
Mike Brocchi
fd12092b21 docs: update the build command docs 2017-03-23 17:25:30 -07:00
Hans Larsen
d94040b2de fix(@angular/cli): sourcemaps should be the main option, sourcemap an alias 2017-03-14 15:32:00 -07:00
Hans Larsen
b4594bac33
fix(@angular/cli): add more description 2017-02-22 17:20:17 -08:00
Sumit Arora
7ebe4f0d4e fix(@angular/cli): adding help descriptions 2017-02-22 18:43:34 -05:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Filipe Silva
d2bef98bb9 feat(@angular/cli): ng e2e defaults to random port (#4753)
BREAKING CHANGE: `ng e2e` will use a random port for serving by default
instead of using 4200.
2017-02-17 19:53:22 +00:00
Filipe Silva
9d29cbca0f feat(@angular/cli): add watch flag to serve/e2e (#4749)
This is useful when you don't want the server to rebuild in the middle of something.

A good example is when running e2e tests. Especially on larger suites, one would prefer to continue working while the build is tested without compromising tests.

This will break tests on #4744. They should be adjusted to add the `--watch` flag since they depend on the live reload behaviour during `ng e2e`.
2017-02-16 17:17:15 -08:00
Filipe Silva
a22474e0ce refactor(@angular/cli): move stats-json to build only (#4746)
Other commands (like serve) do not support this option, so it should only be in build.
2017-02-16 15:48:54 +00:00
Charles Lyding
57ef508895 feat(build): add --poll option to build/serve/test commands
Close #4268
Close #4715
2017-02-16 09:04:49 +00:00
Varun Vachhar
469ca912dc feat(@angular/cli): add --stats-json flag to build (#4189)
Allows you to run ng build --json which generates dist/stats.json. This can then be used with things like the webpack-bundle-analyzer or https://webpack.github.io/analyse/

Fix #3179
2017-02-15 15:39:29 +00:00
Filipe Silva
8d2d93a7a2 feat(e2e): use protractor api (#4527)
Uses existing Protractor API to run it directly instead of using `npm run
e2e`.

Also adds support for the following flags: `--serve`, `--config`,
`--specs`, `--element-explorer`, `--webdriver-update`.

Fix #4256
Fix #4478

BREAKING CHANGE: `ng e2e` no longer needs `ng serve` to be running.
2017-02-09 15:14:29 -08:00
clydin
e0fb87c413 feat(@angular/cli): provide '--sourcemaps' alias for build (#4462) 2017-02-08 16:47:11 -08:00
Filipe Silva
b8328dca55 refactor(commands): turn .run commands into tasks (#4251) 2017-02-08 11:49:05 +00:00
clydin
6bab5ecab5 fix(@angular/cli): don't override base-href if not directly specified (#4489) 2017-02-07 11:23:52 -08: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