Skip to content

Commit 65e8122

Browse files
authored
Merge pull request #1 from angular/master
Update to latest code changes
2 parents e20af21 + 84e67ce commit 65e8122

File tree

604 files changed

+30427
-6253
lines changed

Some content is hidden

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

604 files changed

+30427
-6253
lines changed

.appveyor.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
environment:
22
matrix:
3-
- nodejs_version: "5.0"
4-
- nodejs_version: "6.0"
3+
- nodejs_version: "6.9"
4+
5+
matrix:
6+
fast_finish: true
57

68
install:
79
- ps: Install-Product node $env:nodejs_version
8-
- npm install
10+
- npm install -g yarn
11+
- yarn install
912

1013
test_script:
1114
- node --version
12-
- npm --version
13-
- npm test
15+
- yarn --version
16+
- yarn test
17+
- node tests\run_e2e.js
1418

1519
build: off

.editorconfig

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ root = true
66
charset = utf-8
77
indent_style = space
88
indent_size = 2
9-
end_of_line = lf
109
insert_final_newline = true
1110
trim_trailing_whitespace = true
1211

1312
[*.md]
1413
insert_final_newline = false
15-
trim_trailing_whitespace = false
14+
trim_trailing_whitespace = true

.eslintignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# /node_modules and /bower_components ignored by default
21
dist/
32
.git/
43
tmp/
54
typings/
65

76
# Ignore all blueprint files. We e2e tests those later on.
8-
addon/ng2/blueprints/*/files/
7+
packages/@angular/cli/blueprints/*/files/
8+
9+
# Ignore ember cli.
10+
packages/@angular/cli/ember-cli/

.eslintrc.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"node": true,
99
"es6": true
1010
},
11-
"parser": "espree",
11+
"parserOptions": {
12+
"ecmaVersion": 6,
13+
"sourceType": "module"
14+
},
1215
"rules": {
1316
"no-alert": "off",
1417
"no-array-constructor": "off",
@@ -161,7 +164,7 @@
161164
"guard-for-in": "off",
162165
"handle-callback-err": "off",
163166
"id-length": "off",
164-
"indent": [2,2],
167+
"indent": [2,2, { "SwitchCase": 1 }],
165168
"init-declarations": "off",
166169
"jsx-quotes": "off",
167170
"key-spacing": [2, {

.github/ISSUE_TEMPLATE.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
> Please provide us with the following information:
22
> ---------------------------------------------------------------
33
4-
1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
4+
### OS?
5+
> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
56
67

7-
2. Versions. Please run `ng --version`. If there's nothing outputted, please run
8-
in a Terminal: `node --version` and paste the result here:
8+
### Versions.
9+
> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:
910
1011

11-
3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
12-
do on your code? etc.
12+
### Repro steps.
13+
> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
1314
1415

15-
4. The log given by the failure. Normally this include a stack trace and some
16-
more information.
16+
### The log given by the failure.
17+
> Normally this include a stack trace and some more information.
1718
1819

19-
5. Mention any other details that might be useful.
20+
### Mention any other details that might be useful.
2021

2122
> ---------------------------------------------------------------
2223
> Thanks! We'll be in touch soon.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dist/
22
node_modules/
33
npm-debug.log*
4+
yarn-error.log*
45

56
# IDEs
67
.idea/

.nvmrc

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

.travis.yml

+38-32
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,59 @@
11
dist: trusty
22
sudo: required
3+
34
language: node_js
4-
node_js:
5-
- "5"
6-
- "6"
7-
os:
8-
- linux
9-
- osx
5+
106
env:
117
global:
128
- DBUS_SESSION_BUS_ADDRESS=/dev/null
13-
matrix:
14-
- SCRIPT=lint
15-
# - SCRIPT=build
16-
- SCRIPT=test
17-
# - TARGET=mobile SCRIPT=mobile_test
9+
1810
matrix:
1911
fast_finish: true
2012
allow_failures:
21-
- os: osx
22-
exclude:
13+
- node_js: "7"
14+
- env: NODE_SCRIPT="tests/run_e2e.js --nightly --ng4"
15+
include:
2316
- node_js: "6"
24-
env: SCRIPT=lint
25-
- os: osx
26-
node_js: "5"
17+
os: linux
2718
env: SCRIPT=lint
2819
- node_js: "6"
20+
os: linux
2921
env: SCRIPT=build
30-
- os: osx
31-
node_js: "5"
32-
env: SCRIPT=build
33-
- os: osx
34-
env: TARGET=mobile SCRIPT=mobile_test
22+
- node_js: "6"
23+
os: linux
24+
env: SCRIPT=test
25+
- node_js: "6"
26+
os: linux
27+
env: NODE_SCRIPT="tests/run_e2e.js --glob=tests/build/**"
28+
- node_js: "6"
29+
os: linux
30+
env: NODE_SCRIPT="tests/run_e2e.js --eject --glob=tests/build/**"
31+
- node_js: "6"
32+
os: linux
33+
env: NODE_SCRIPT="tests/run_e2e.js --ignore=**/tests/build/**"
34+
- node_js: "6"
35+
os: linux
36+
env: NODE_SCRIPT="tests/run_e2e.js --ng4 --glob=tests/build/**"
37+
- node_js: "6"
38+
os: linux
39+
env: NODE_SCRIPT="tests/run_e2e.js --ng4 --ignore=**/tests/build/**"
40+
41+
# Optional builds.
42+
- node_js: "6"
43+
os: linux
44+
env: NODE_SCRIPT="tests/run_e2e.js --nightly --ng4"
45+
- node_js: "7"
46+
os: linux
47+
env: NODE_SCRIPT=tests/run_e2e.js
3548

3649
before_install:
37-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
38-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi
39-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome --force; fi
40-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir ~/.config && echo "--no-sandbox" > ~/.config/chrome-flags.conf; fi
4150
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
4251
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
4352
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi
4453
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "--no-sandbox" > ~/.config/chromium-flags.conf; fi
45-
- if [[ "$TARGET" == "mobile" ]]; then export MOBILE_TEST=true; fi
46-
- npm config set spin false
47-
- npm config set progress false
48-
49-
install:
50-
- npm install --no-optional
54+
- yarn config set spin false
55+
- yarn config set progress false
5156

5257
script:
53-
- npm run-script $SCRIPT
58+
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
59+
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi

0 commit comments

Comments
 (0)