Skip to content

Commit 045ceaf

Browse files
authored
Merge branch 'master' into dev-eromano-8783
2 parents cdf5cfc + f15c797 commit 045ceaf

File tree

329 files changed

+9439
-11339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

329 files changed

+9439
-11339
lines changed

.appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment:
22
matrix:
3-
- nodejs_version: "6"
3+
- nodejs_version: "8"
44

55
matrix:
66
fast_finish: true
@@ -15,7 +15,7 @@ test_script:
1515
- npm --version
1616
- npm run test:packages
1717
- npm run test:cli
18-
- node tests\run_e2e.js --appveyor "--glob=tests/{basic,commands,generate}/**"
18+
- node tests\run_e2e.js --appveyor "--glob=tests/{basic,commands,generate,build/styles}/**"
1919

2020
build: off
2121

.circleci/config.yml

+6-71
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
<<: *restore_cache_defaults
4949
- run: npm run test
5050

51-
# E2E test for current Angular.
51+
# E2E test for current Angular.
5252
e2e-setup:
5353
<<: *defaults
5454
steps:
@@ -110,67 +110,14 @@ jobs:
110110
- run: cp -r /workspace/dist/ ./
111111
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-default/test-project --nb-shards=4 --shard=3 --nosilent
112112

113-
# E2E test for Angular nightly.
114-
e2e-setup-nightly:
113+
# Master only E2E.
114+
nightly-e2e:
115115
<<: *defaults
116116
steps:
117117
- checkout
118118
- restore_cache:
119119
<<: *restore_cache_defaults
120-
- run: mkdir /workspace
121-
- run: mkdir /workspace/angular-cli-e2e-nightly
122-
# Ignore all tests, we just want the setup step to persist it to the workspace.
123-
- run: node tests/run_e2e.js --tmpdir=/workspace/angular-cli-e2e-nightly --ignore=**/* --nightly
124-
- run: mv dist /workspace/
125-
- persist_to_workspace:
126-
root: /workspace
127-
paths:
128-
- dist/
129-
- angular-cli-e2e-nightly/
130-
131-
e2e-0-nightly:
132-
<<: *defaults
133-
steps:
134-
- checkout
135-
- restore_cache:
136-
<<: *restore_cache_defaults
137-
- attach_workspace:
138-
<<: *attach_workspace_defaults
139-
- run: cp -r /workspace/dist/ ./
140-
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=0 --nosilent --nightly
141-
142-
e2e-1-nightly:
143-
<<: *defaults
144-
steps:
145-
- checkout
146-
- restore_cache:
147-
<<: *restore_cache_defaults
148-
- attach_workspace:
149-
<<: *attach_workspace_defaults
150-
- run: cp -r /workspace/dist/ ./
151-
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=1 --nosilent --nightly
152-
153-
e2e-2-nightly:
154-
<<: *defaults
155-
steps:
156-
- checkout
157-
- restore_cache:
158-
<<: *restore_cache_defaults
159-
- attach_workspace:
160-
<<: *attach_workspace_defaults
161-
- run: cp -r /workspace/dist/ ./
162-
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=2 --nosilent --nightly
163-
164-
e2e-3-nightly:
165-
<<: *defaults
166-
steps:
167-
- checkout
168-
- restore_cache:
169-
<<: *restore_cache_defaults
170-
- attach_workspace:
171-
<<: *attach_workspace_defaults
172-
- run: cp -r /workspace/dist/ ./
173-
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=3 --nosilent --nightly
120+
- run: xvfb-run -a node tests/run_e2e.js --nightly "--glob=tests/build/**"
174121

175122
workflows:
176123
version: 2
@@ -199,23 +146,11 @@ workflows:
199146
- e2e-3:
200147
requires:
201148
- e2e-setup
202-
# E2E test for Angular nightly.
203-
- e2e-setup-nightly:
149+
# Master only E2E.
150+
- nightly-e2e:
204151
requires:
205152
- build
206153
filters:
207154
branches:
208155
only:
209156
- master
210-
- e2e-0-nightly:
211-
requires:
212-
- e2e-setup-nightly
213-
- e2e-1-nightly:
214-
requires:
215-
- e2e-setup-nightly
216-
- e2e-2-nightly:
217-
requires:
218-
- e2e-setup-nightly
219-
- e2e-3-nightly:
220-
requires:
221-
- e2e-setup-nightly

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6
1+
8

.travis.yml

+14-27
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ matrix:
2121
fast_finish: true
2222
allow_failures:
2323
- env: nightly
24-
- env: ng2
25-
- node_js: "7"
26-
- node_js: "8"
24+
- env: node9
2725
include:
2826
# Build stage
2927
- stage: build
@@ -36,49 +34,38 @@ matrix:
3634
- stage: test
3735
script: npm run test
3836
env: test
39-
- node_js: "6"
37+
- node_js: "8"
4038
os: linux
4139
script: node tests/run_e2e.js --nb-shards=4 --shard=0 --nosilent
4240
env: e2e-0
43-
- node_js: "6"
41+
- node_js: "8"
4442
os: linux
4543
script: node tests/run_e2e.js --nb-shards=4 --shard=1 --nosilent
4644
env: e2e-1
47-
- node_js: "6"
45+
- node_js: "8"
4846
os: linux
4947
script: node tests/run_e2e.js --nb-shards=4 --shard=2 --nosilent
5048
env: e2e-2
51-
- node_js: "6"
49+
- node_js: "8"
5250
os: linux
5351
script: node tests/run_e2e.js --nb-shards=4 --shard=3 --nosilent
5452
env: e2e-3
55-
- node_js: "6"
56-
os: linux
57-
script: node tests/run_e2e.js --eject "--glob=tests/build/**"
58-
env: eject
53+
# WEBPACK4_DISABLED - eject temporarily disabled for webpack 4 integration
54+
# - node_js: "8"
55+
# os: linux
56+
# script: node tests/run_e2e.js --eject "--glob=tests/build/**"
57+
# env: eject
5958

6059
# Optional stage.
6160
- stage: optional
62-
node_js: "6"
63-
os: linux
64-
script: node tests/run_e2e.js --ng2 "--glob=tests/build/**"
65-
env: ng2
66-
- node_js: "6"
67-
os: linux
68-
script: node tests/run_e2e.js --ng4 "--glob=tests/build/**"
69-
env: ng4
70-
- node_js: "6"
61+
node_js: "8"
7162
os: linux
7263
script: node tests/run_e2e.js --nightly "--glob=tests/build/**"
7364
env: nightly
74-
- node_js: "7"
75-
os: linux
76-
script: node tests/run_e2e.js "--glob=tests/build/**"
77-
env: node7
78-
- node_js: "8"
65+
- node_js: "9"
7966
os: linux
8067
script: node tests/run_e2e.js "--glob=tests/build/**"
81-
env: node8
68+
env: node9
8269

8370
# Deploy stage
8471
- stage: deploy
@@ -102,7 +89,7 @@ matrix:
10289

10390
before_install:
10491
# Install npm 5.
105-
- npm install -g npm@~5.3.0
92+
- npm install -g npm@~5.6.0
10693

10794
install:
10895
- npm install

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- Badges section here. -->
55
[![Build Status](https://img.shields.io/travis/angular/angular-cli/master.svg?label=travis)][travis-badge-url]
6-
[![CircleCI branch](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser/master.svg?label=circleci)](https://circleci.com/gh/angular/angular-cli)
6+
[![CircleCI branch](https://img.shields.io/circleci/project/github/angular/angular-cli/master.svg?label=circleci)](https://circleci.com/gh/angular/angular-cli)
77
[![Dependency Status][david-badge]][david-badge-url]
88
[![devDependency Status][david-dev-badge]][david-dev-badge-url]
99

@@ -84,7 +84,7 @@ ng g component my-new-component # using the alias
8484
ng g component new-cmp
8585
# your component will be generated in src/app/feature/new-cmp
8686
# but if you were to run
87-
ng g component ../newer-cmp
87+
ng g component ./newer-cmp
8888
# your component will be generated in src/app/newer-cmp
8989
# if in the directory src/app you can also run
9090
ng g component feature/new-cmp
@@ -127,8 +127,8 @@ To update Angular CLI to a new version, you must update both the global package
127127
Global package:
128128
```bash
129129
npm uninstall -g @angular/cli
130-
npm cache clean
131-
# if npm version is > 5 then use `npm cache verify` to avoid errors (or to avoid using --force)
130+
npm cache verify
131+
# if npm version is < 5 then use `npm cache clean`
132132
npm install -g @angular/cli@latest
133133
```
134134

docs/design/deployurl-basehref.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
| | Deploy URL | Base HREF |
2+
|--|:--:|:--:|
3+
| Initial scripts (index.html) | ✅ 👍 | ✅ 👍 |
4+
| Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 |
5+
| Lazy scripts (routes/import()/etc.) | ✅ 👍 | ✅ 👍 |
6+
| Processed CSS resources (images/fonts/etc.) | ✅ 👍 | ✅ 👍 |
7+
| Relative template (HTML) assets | ❌ 👎 | ✅ 👍 |
8+
| Angular Router Default Base (APP_BASE_HREF) ||*1 |
9+
| Single reference in deployed Application | ❌ 👎 | ✅ 👍 |
10+
| Special resource logic within CLI | ✅ 👎 | ❌ 👍 |
11+
| Relative fetch/XMLHttpRequest |||
12+
13+
✅ - has/affects the item/trait
14+
❌ - does not have/affect the item/trait
15+
👍 - favorable behavior
16+
👎 - unfavorable behavior
17+
18+
*1 -- Users with more complicated setups may need to manually configure the `APP_BASE_HREF` token within the application. (e.g., application routing base is `/` but assets/scripts/etc. are at `/assets/`)

docs/documentation/build.md

+10
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ Remember to disable the service worker while developing to avoid stale code.
118118

119119
Note: service worker support is experimental and subject to change.
120120

121+
### ES2015 support
122+
123+
To build in ES2015 mode, edit `./tsconfig.json` to use `"target": "es2015"` (instead of `es5`).
124+
125+
This will cause application TypeScript and Uglify be output as ES2015, and third party libraries
126+
to be loaded through the `es2015` entry in `package.json` if available.
127+
128+
Be aware that JIT does not support ES2015 and so you should build/serve your app with `--aot`.
129+
See https://github.com/angular/angular-cli/issues/7797 for details.
130+
121131
## Options
122132
<details>
123133
<summary>aot</summary>

docs/documentation/e2e.md

+10
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ Please note that options that are supported by `ng serve` are also supported by
6060
</p>
6161
</details>
6262

63+
<details>
64+
<summary>suite</summary>
65+
<p>
66+
<code>--suite</code> (aliases: <code>-su</code>)
67+
</p>
68+
<p>
69+
Override suite in the protractor config. Can send in multiple suite by comma separated values (<code>ng e2e --suite=suiteA,suiteB</code>).
70+
</p>
71+
</details>
72+
6373
<details>
6474
<summary>webdriver-update</summary>
6575
<p>

docs/documentation/generate.md

+7-20
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,26 @@
2323
<code>--dry-run</code> (aliases: <code>-d</code>) <em>default value: false</em>
2424
</p>
2525
<p>
26-
Run through without making any changes. Will list all files that would have been created when running <code>ng generate</code>.
26+
Run through without making any changes.
2727
</p>
2828
</details>
2929

3030
<details>
31-
<summary>lint-fix</summary>
31+
<summary>force</summary>
3232
<p>
33-
<code>--lint-fix</code> (aliases: <code>-lf</code>)
33+
<code>--force</code> (aliases: <code>-f</code>) <em>default value: false</em>
3434
</p>
3535
<p>
36-
Use lint to fix files after generation.
37-
</p>
38-
<p>
39-
You can also set default true to use lint every time after generation. To do this, change the value in <em>.angular-cli.json</em> (<code>defaults.lintFix</code>).
40-
</p>
41-
</details>
42-
43-
<details>
44-
<summary>verbose</summary>
45-
<p>
46-
<code>--verbose</code> (aliases: <code>-v</code>) <em>default value: false</em>
47-
</p>
48-
<p>
49-
Adds more details to output logging.
36+
Forces overwriting of files.
5037
</p>
5138
</details>
5239

5340
<details>
54-
<summary>collection</summary>
41+
<summary>app</summary>
5542
<p>
56-
<code>--collection</code> (aliases: <code>-c</code>) <em>default value: @schematics/angular</em>
43+
<code>--app</code>
5744
</p>
5845
<p>
59-
Schematics collection to use.
46+
Specifies app name to use.
6047
</p>
6148
</details>

docs/documentation/generate/component.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<details>
2020
<summary>change-detection</summary>
2121
<p>
22-
<code>--change-detection</code> (aliases: <code>-cd</code>)
22+
<code>--change-detection</code> (aliases: <code>-c</code>)
2323
</p>
2424
<p>
2525
Specifies the change detection strategy.
@@ -49,7 +49,7 @@
4949
<details>
5050
<summary>inline-style</summary>
5151
<p>
52-
<code>--inline-style</code> (aliases: <code>-is</code>) <em>default value: false</em>
52+
<code>--inline-style</code> (aliases: <code>-s</code>) <em>default value: false</em>
5353
</p>
5454
<p>
5555
Specifies if the style will be in the ts file.
@@ -59,7 +59,7 @@
5959
<details>
6060
<summary>inline-template</summary>
6161
<p>
62-
<code>--inline-template</code> (aliases: <code>-it</code>) <em>default value: false</em>
62+
<code>--inline-template</code> (aliases: <code>-t</code>) <em>default value: false</em>
6363
</p>
6464
<p>
6565
Specifies if the template will be in the ts file.
@@ -109,7 +109,7 @@
109109
<details>
110110
<summary>view-encapsulation</summary>
111111
<p>
112-
<code>--view-encapsulation</code> (aliases: <code>-ve</code>)
112+
<code>--view-encapsulation</code> (aliases: <code>-v</code>)
113113
</p>
114114
<p>
115115
Specifies the view encapsulation strategy.

docs/documentation/home.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ End-to-end tests are run via [Protractor](https://angular.github.io/protractor/)
5454
* [ng doc](doc)
5555
* [ng eject](eject)
5656
* [ng xi18n](xi18n)
57+
* [ng update](update)
5758

5859
## Angular CLI Config Schema
5960
* [Config Schema](angular-cli)

0 commit comments

Comments
 (0)