144 Commits

Author SHA1 Message Date
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
Sumit Arora
e15a5ea97a docs: adding multiple apps story (#5737)
Fixes: #5726
2017-05-04 19:56:49 +01:00
Mark Pritchett
6a82799ce0 docs(@angular/cli): add application environments (#6068)
add instructions on how to setup application environments
2017-05-03 20:59:30 +01:00
Hans Larsen
7a6cb21524
Revert "feat(@angular/cli): adding skip e2e test option"
This reverts commit fdea2df02719be9fabdc25fdc3a88835afe5b286.
2017-04-24 19:41:41 -07:00
Alexander Rusakov
2e87225f01 docs(@angular/cli): remove duplicate "--output-path" description 2017-04-24 18:47:25 -07:00
Mike Brocchi
0633130509 docs: correct formatting of an option (#5965) 2017-04-15 09:04:14 -04:00
Preston Van Loon
28c5302fd3 docs(@angular/cli): Add specific key example for ng get [key]. 2017-04-11 16:35:46 -07:00
Sumit Arora
1fa5f2ddf7 docs: fixing lint documentation (#5633)
Fixes #5632
Fixes #5713
2017-03-31 16:59:33 -07:00
Sumit Arora
d73c739e42 test: adding tests for "--skip-e2e" and "--skip-tests" 2017-03-31 16:57:16 -07:00
Sumit Arora
fdea2df027 feat(@angular/cli): adding skip e2e test option 2017-03-31 16:57:16 -07:00
Cory Rylan
b48aa002a1 docs: code coverage documentation
Close #5703
2017-03-29 11:06:21 +01:00
Olivier Combe
d7d4539c29 docs(@angular/cli): fixed link to xi18n commands in i18n story
Close #5660
2017-03-29 11:03:07 +01:00
David Mendez
e9139941ca docs(@angular/cli): removes mention of --ng4 on ng new
Close #5649
2017-03-29 11:02:37 +01:00