156 Commits

Author SHA1 Message Date
Thomas Burleson
a95622738b docs: update flex-layout story 2017-08-07 10:03:42 -07:00
Josh Iverson
c6bba521ab docs: add NamedChunks to dev/prod defaults table 2017-08-03 18:06:28 +01:00
Josh Iverson
31c810a07e docs: fix material install 2017-08-03 18:03:43 +01:00
Justin Grayston
e6844b708b docs: fix universal dep save flag
Closes #7211
2017-08-02 11:47:43 +01:00
yokots
35c10dfdb1 docs: apps[0].lintFix => defaults.lintFix 2017-07-31 14:51:27 +01:00
Kristofer Karlsson
0cc86374d5 docs: Fixed typo in universal story 2017-07-31 13:55:40 +01:00
Filipe Silva
2a526914f0 docs: add universal rendering
Add doc file for https://github.com/angular/angular-cli/wiki/stories-universal-rendering

/cc @alxhub
2017-07-25 20:51:07 +01:00
Christian Liebel
d5d0b07812 feat(@angular/cli): update standard library to es2017
ECMAScript 2017 was released at the end of June. Standard library support for ES 2017 is around in TypeScript for quite a while now. Even `typescript@~2.0.0` which is used by the Angular 2 template supports a subset of ES 2017. Hence, it seems reasonable to update to the latest standard library version.
2017-07-19 16:04:16 -04:00
jnizet
6ca6a5e92b fix(@angular/cli): fix doc command to work with new angular.io
- change the URL for the API search
- use google search when --search option is true, since angular.io doesn't have a search page anymore
- improve the help and doc of the doc command
2017-07-19 15:57:15 -04: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
e66c26ccd5 docs: add CI testing story 2017-07-19 11:01:15 -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
79cb1449b1 docs: add multiple apps story to story list 2017-07-05 18:47:11 -07:00
Hans Larsen
8c3aa67dd3 docs: remove CHANGELOG as its not useful anymore 2017-07-05 15:55:43 -07:00
James Ayvaz
36e4d7b4bb feat(@angular/cli): read proxyConfig from angular-cli.json
easy proxy config by reading default from angular-cli.json (#6240)
2017-07-05 11:45:52 -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
Yaroslav Admin
70713bf076 feat(@angular/cli): add flag to specify environment for ng test command 2017-06-29 14:28:11 +01:00
Luke Pettway
d133a05972 docs(@angular/cli): Update xi18n outfile argument string
Should be ` --out-file` which is what the cli shows when you use `ng xi18n --help` to list commands
2017-06-28 14:44:24 +01:00
Bram Borggreve
baf60dc83b docs: add story about configuring HMR 2017-06-28 14:43:40 +01:00
Filipe Silva
1f3738b19f feat(@angular/cli): add circular dependency detection
Circular dependencies, like `app.module.ts` importing `app.component.ts` which in turn imports `app.module.ts`, now display a warning during builds:

```
kamik@T460p MINGW64 /d/sandbox/master-project (master)
$ ng build
Hash: 3516b252f4e32d6c5bb8
Time: 8693ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {4} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.js.map (main) 5.95 kB {3} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {4} [initial] [rendered]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.88 MB [initial] [rendered]
chunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

WARNING in Circular dependency detected:
src\app\app.module.ts -> src\app\app.component.ts -> src\app\app.module.ts

WARNING in Circular dependency detected:
src\app\app.component.ts -> src\app\app.module.ts -> src\app\app.component.ts
```

It is important to detect and eliminate circular dependencies because leaving them in might lead to `Maximum call stack size exceeded` errors, or imports being `undefined` at runtime.

To remove these warnings from your project you can factor out the circular dependency into a separate module.

For instance, if module A imports `foo` from module B, and module B imports `bar` from module A, it is enough to extract `foo` into module C.

You can turn off these warnings by running ng set apps.0.hideCircularDependencyWarnings=true. This will add the "hideCircularDependencyWarnings": true value to your .angular-cli.json and disable the warnings.

Fix #6309
Fix #6739
2017-06-27 16:30:30 +01:00
Jama Noor
7d583fb36c docs(@angular/cli): add doc for --delete-output-path option 2017-06-27 16:26:51 +01:00
Justin Kurtz
cff95a732e docs(@angular/cli): add bypass proxy example 2017-06-27 16:08:14 +01:00
Stefan Steinhart
4008768f86 docs(@angular/cli): adds multiple entries how-to
If there is a need to define multiple entries or otherwise more complex configuration a js file can be used to configure the proxy. These changes document how to do so.
2017-06-15 13:23:28 -04:00
Giora Guttsait
e87598e5db docs(@angular/cli): update documentation for ng new
* for several options that are saved in .angular-cli.json, I've added an explanation of what setting in the json file controls that options.
* added an explanation about what --dry-run will output.
* added possible values for --style option
* added respective documentation in the command
* also added less, sass and styl(stylus) as possible style extensions

The motivation for this change is that sometimes people would want to change some of the settings set by the cli durig ng new, that they might have not known or cared about, for example, prefix.
2017-06-12 09:52:45 -04:00
Mike Brocchi
a7668e0b0c feat(@angular/cli): add barebones option to ng new
This feature allows users to specify `--barebones` (`-b`) to create a no-frills app.
2017-06-07 12:33:48 -07:00
Pittan
29c7ba17d3 docs(@angular/cli): add details about generate command
* add an explanation about what --dry-run will output
* add an explanation about what --lint-fix will do
* add an explanation about how to set default  to use lint always
* add an explanation about what --verbose will do
2017-06-06 15:07:33 +01:00
Sumit Arora
e72693a948 feat(@angular/cli): remove deduped licenses 2017-06-02 19:19:44 +01:00
Stephen Cavaliere
0a6b796910 docs: fix github pages link 2017-05-31 11:00:11 -07:00
Filipe Silva
a34cf2c9d7 docs(@angular/cli): document output dir deletion
Address concerns in #4366, #6375.
2017-05-24 16:20:11 -04:00
Johannes Hoppe
074d1c2c5f docs(@angular/cli): fix github pages path 2017-05-24 16:18:12 -04:00
Filipe Silva
1156befb93 docs: add linked library story (#6292)
Blocked on https://github.com/angular/angular-cli/pull/6276.
2017-05-17 19:24:42 -04:00
dave11mj
5cac1f0207 docs(@angular/cli): Updates global library instructions (#6339) 2017-05-17 19:23:46 -04:00
David Pertiller
da0c6c86a4 docs(@angular/cli): fix description for polyfills config (#6300) 2017-05-17 15:50:26 -04:00
Sumit Arora
9bd9b3d07d docs(@angular/cli): fixing new docs 2017-05-15 14:26:10 -07:00
Filipe Silva
272766f11b docs(@angular/cli): document resource copy (#6323) 2017-05-15 14:23:19 -07:00
Filipe Silva
cf2352f8b0 docs: add global lib usage instructions (#6294)
See https://github.com/angular/angular-cli/issues/6033 for context.
2017-05-15 17:22:03 -04:00
Filipe Silva
517be88364 docs(@angular/cli): document service worker support (#6324) 2017-05-15 17:21:19 -04:00
Filipe Silva
a8325a552f docs(@angular/cli): add github pages deploy docs (#6326) 2017-05-15 17:20:54 -04:00
dave11mj
ebe190406c docs(@angular/cli): fixes wrong link on corporate proxy story (#6299) 2017-05-15 11:15:38 -04:00
Pedro Buzzi Filho
0de9cb696b docs(@angular/cli): fix sample home.md 2017-05-11 09:39:11 +01:00
Filipe Silva
a54a991b2f feat(@angular/cli): add host check flags to ng serve
Two new flags are added to `ng serve`:
- `--public-host` (aliased by `--live-reload-client): Specify the URL that the browser client will use.
- `--disable-host-check`: Don't verify connected clients are part of allowed hosts.

Setting `--disable-host-check` will output a warning:
```
WARNING Running a server with --disable-host-check is a security risk. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a for more information.
```

See #6070 for more context about this change.

Fix #6070
2017-05-09 21:04:58 +01:00
Filipe Silva
5a41c42ea9 docs: add dev vs prod details
Fix #5315
2017-05-09 12:07:43 -07:00
Mattia
b1d0615709 docs: add font-awesome SASS integration
add SASS integration for font-awesome

Close #5456
2017-05-09 07:17:22 -07:00
Mark Goho
59575cf08d docs: adding autoprefixer config story to list
Close #6188
2017-05-09 07:17:22 -07:00
Mark Goho
2876670e1b docs: add story about autoprefixer config
Those wishing to change which browsers are targeted for when css is prefixed can do so with a simple addition to their package.json file

Close #5975
2017-05-09 07:17:22 -07:00
Stephen Cavaliere
8b220a4012 feat(@angular/cli): add import flag to modules
closes #5377
2017-05-08 12:49:29 +01:00
Adrien Crivelli
5066c467df docs: fix material themes path in user stories 2017-05-04 20:17:49 +01:00
Tatsuyuki Ishi
e7966a2465 fix(@angular/cli): remove default for test runners
These are specified in the config file and defaulting them in CLI makes karma.conf.js useless.
2017-05-04 20:09:12 +01:00
RPGillespie6
8d8c5de080 docs(@angular/cli): Update 1.0 upgrade guide (#5876)
Added a few extra details on how to remove residual versions of Angular CLI and reorganized upgrade steps.

Fixes #5842
2017-05-04 20:06:59 +01:00