185 Commits

Author SHA1 Message Date
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
Hans Larsen
64c600d1da docs: update asset story for the new allowOutsideOutDir flag 2017-11-20 09:15:56 -08:00
Michał Gołębiowski-Owczarek
a5dde90d73 docs: fix the link to the Angular Universal Starter
The Angular Universal Starter repo is now CLI-only so it doesn't have the cli
directory any longer.
2017-11-20 09:15:22 -08:00
Shlang
98b4f421ab docs: fix typos 2017-11-02 15:52:13 +00:00
Sarun Intaralawan
4d866b04e9 docs(@angular/cli): change base href in i18n docs 2017-11-02 15:51:40 +00:00
Fabian Wiles
f065a1ecc7 docs: remove output hashing from universal guide example 2017-11-02 15:50:29 +00:00
Kulshekhar Kabra
03f1717b98 docs: fix hmr typos
`hrm` -> `hmr`
2017-11-02 15:01:51 +00:00
Vikram Subramanian
40828aaef5 docs(universal): update the npm run targets to match the ones in universal-starter 2017-10-30 16:40:28 -07:00
Mark Pieszak
73014d98de docs: universal 2017-10-29 12:39:57 -07:00
Fabian Wiles
c69e092d76 docs(@angular/cli): fix universal example webpack config 2017-10-27 09:40:13 -07:00
Olivier Combe
1abd7b0455 docs(@angular/cli): fixed typos 2017-10-26 09:49:29 +01: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
Daniel Edwards
7f5529d8e0 docs(@angular/cli): Update documentation of ng e2e to note support of ng serve arguments 2017-10-17 11:33:49 +01:00
Daniel Edwards
af0c6e4187 docs(@angular/cli): Include base-href flag in e2e documentation 2017-10-17 11:33:49 +01:00
Adam Plumer
ff6e79fa9c docs(@angular/cli): update proxy config story
- Fixes #7772
2017-10-11 15:21:25 -07:00
Mark Pieszak
6ecc60bf53 fix(universal): add ts-loader install 2017-10-11 11:55:18 -07:00
Mark Pieszak
eed13cf21d docs: update documentation for universal (#7803) 2017-10-06 16:35:45 -07:00
Aditya Parab
3bbf175bab fix(@angular/cli): do not run e2e task if build fails
when ng e2e --serve=true is run and the build is not successful e2e task
should not be run

previously the e2e task was run even if build was a failure which will
obviously result in failure of test cases
now if errors are detected in build the e2e task will not be run
update docs as well to reflect this behaviour

Closes #7567
2017-10-06 09:59:47 -07: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
66701ad7bc docs: elaborate eject docs 2017-09-28 20:11:37 +01:00
Suguru Inatomi
7d29450b3e docs: fix wrong shorthand of --named-chunks 2017-09-22 08:17:05 -04:00
Cotton Hou
4cd714dbcc docs(@angular/cli): alias (-pc) for proxy-config 2017-09-06 19:27:12 +01:00
Aditya Parab
7b8e0fa522 docs(@angular/cli): update story for global lib to show correct bootstrap4
configuration

- update bootstrap4 url to point to correct page
- remove tether import in .angular-cli.json
- add umd version popper.js import in .angular-cli.json instead of tether

Closes #7584
2017-09-05 11:17:25 +01: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
Jim Cullison
74eb05945b docs(@angular/cli): Update serve.md to include proxy-config option
Add --proxy-config and link to detailed documentation.
2017-08-18 10:18:13 -07:00
Mike Brocchi
f26456f053 docs: Update Angular Material story to defer to the Material docs
Fixes #7286
2017-08-18 10:13:02 -07:00
KevinYang
0cada6bd00 docs: update test config command 2017-08-17 11:59:29 -07:00
Mike Brocchi
128187e4c1 feat(@angular/cli): Update generate & new to use schematics
This feature is related to #6593
2017-08-16 18:24:43 -04:00
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