49 Commits

Author SHA1 Message Date
Alan
068bb4001d docs: add deprecation and pr note
Docs are deprecated in favor of the the new pages in AIO which are WIP.
2019-01-09 09:14:13 -08:00
Pascal Honegger
63a9bd464f docs: remove space for webpack-bundle-analyzer url 2018-12-10 13:41:12 -08:00
Alan Agius
4a4cfb0fa5 docs: add links to aio pages 2018-10-18 14:08:09 -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
Alan Agius
bb21592b01 docs: add reference to vendor-source-map flag 2018-06-21 08:35:27 -04:00
Hans
7924e0a455 docs: re-add angular/cli docs which were deleted when syncing devkit 2018-06-08 07:24:02 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00
Bram Borggreve
77610d5df5 docs: fix links to https://webpack.github.io/analyse 2018-05-16 18:08:28 -04:00
Charles Lyding
0344563355 docs: add anonymous options and schematics list 2018-05-10 10:21:41 -07:00
Charles Lyding
74bac97ce0 docs: cleanup build command wiki entry for 6.0 2018-05-10 10:21:41 -07:00
Filipe Silva
e64cd783e9 docs: update command descriptions 2018-04-30 18:26:57 -07:00
Charles Lyding
b3e966e43f docs: update wiki command options 2018-04-30 15:03:12 -07:00
Filipe Silva
a39fad3b7f docs: document ES2015 support 2017-12-14 11:03:58 -08:00
Filipe Silva
4e7afcb3d6 docs(@angular/cli): add section on build command about build-optimizer and vendor-chunk
Fix #8586
2017-11-24 18:51:56 +00: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
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
Suguru Inatomi
7d29450b3e docs: fix wrong shorthand of --named-chunks 2017-09-22 08:17:05 -04:00
Filipe Silva
b813810f49 docs: update build-optimizer command (#7276)
Followup to https://github.com/angular/angular-cli/pull/7231
2017-08-22 15:13:57 -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
Josh Iverson
c6bba521ab docs: add NamedChunks to dev/prod defaults table 2017-08-03 18:06:28 +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
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
Jama Noor
7d583fb36c docs(@angular/cli): add doc for --delete-output-path option 2017-06-27 16:26:51 +01:00
Sumit Arora
e72693a948 feat(@angular/cli): remove deduped licenses 2017-06-02 19:19:44 +01:00
Filipe Silva
a34cf2c9d7 docs(@angular/cli): document output dir deletion
Address concerns in #4366, #6375.
2017-05-24 16:20:11 -04:00
Filipe Silva
272766f11b docs(@angular/cli): document resource copy (#6323) 2017-05-15 14:23:19 -07:00
Filipe Silva
517be88364 docs(@angular/cli): document service worker support (#6324) 2017-05-15 17:21:19 -04:00
Filipe Silva
5a41c42ea9 docs: add dev vs prod details
Fix #5315
2017-05-09 12:07:43 -07:00
Alexander Rusakov
2e87225f01 docs(@angular/cli): remove duplicate "--output-path" description 2017-04-24 18:47:25 -07:00
Sumit Arora
1fa5f2ddf7 docs: fixing lint documentation (#5633)
Fixes #5632
Fixes #5713
2017-03-31 16:59:33 -07:00
Mike Brocchi
fd12092b21 docs: update the build command docs 2017-03-23 17:25:30 -07:00
cexbrayat
2828ab4bcc docs(@angular/cli): fix typos in options documentation
Close #5283
2017-03-09 10:47:00 +00:00
Sumit Arora
8c3a7b86dc docs(@angular/cli): Adding more details to documentation (#4960) 2017-03-06 18:47:11 +00:00
Stephen Cavaliere
2699857b79 docs(@angular/cli): document ng eject (#5155) 2017-03-02 11:35:37 -08: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
16bfdf0123 feat(@angular/cli): use environmentSource key for environments (#4705)
Heavily based on @jsanchezgarcia work in #4476.

Fix #3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
2017-02-16 12:09:28 +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
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
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
e15433e74a refactor(build): consolidate build options (#4105)
Fix https://github.com/angular/angular-cli/issues/4138

BREAKING CHANGE:

- `--extractCss` defaults to `false` on all `--dev` (`ng build` with no flags uses `--dev`)
-  `--aot` defaults to true in `--prod`
- the alias for `--output-path` is now `-op` instead of `-o`
2017-01-24 17:51:48 +00:00
Mike Brocchi
092e673153 docs: move documentation from readme to docs
Close #4190
2017-01-24 16:30:28 +00:00
Bram Borggreve
26003a0d4e docs: add comment to files in docs/documentation about not adding .md to links
Close #4163
2017-01-24 16:30:16 +00:00
Filipe Silva
87536c8d21 feat(build): add --extract-css flag (#3943)
Having css extraction on all the time makes dev rebuild times very slow for global styles.

This flag defaults to false on dev targets and true on prod targets.
2017-01-12 11:36:00 -08:00
clydin
b82fe414df feat(build): allow output hashing to be configured (#3885) 2017-01-10 14:33:57 -08:00
Ricardo Varanda
cc23e803ec chore(docs): Update misleading build target documentation (#3915) 2017-01-09 10:36:31 -08:00
Mike Brocchi
a5a33fa1db chore(docs): move the new wiki docs to main repo (#3382)
This move will allow other devs to contribute and allow for pull requests and reviews against docs changes.
2016-12-05 15:25:11 -08:00