Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 9f2e627

Browse files
authored
chore: revise to conform to QS reboot in angular.io PR #2762 (#287)
1 parent 7556148 commit 9f2e627

9 files changed

+25
-308
lines changed

.dockerignore

-1
This file was deleted.

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
## Angular Documentation QuickStart Changelog
2-
Upgraders: to be sure of a fresh start, consider running these commands
2+
Upgraders: for a fresh start, consider running these commands
33
* `git clean -xdf`
44
* `npm install`
55
* `npm run webdriver:update`
66

7+
<a name="0.2.17"></a>
8+
# 0.2.17 (2016-11-16)
9+
* Conform to updated QuickStart advice
10+
* removed docker everywhere (was nice but not necessary)
11+
* removed wallaby
12+
* shrink styles.css
13+
* refine tsconfig.json
14+
* `AppComponent` uses interpolation
15+
716
<a name="0.2.16"></a>
817
# 0.2.16 (2016-11-14)
918
* Update to Angular 2.2.0

Dockerfile

-21
This file was deleted.

app/app.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'my-app',
5-
template: `<h1>Hello Angular</h1>`
4+
selector: 'my-app',
5+
template: `<h1>Hello {{name}}</h1>`,
66
})
7-
export class AppComponent { }
7+
export class AppComponent { name = 'Angular'; }

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
</head>
2121

2222
<body>
23-
<my-app>Loading...</my-app>
23+
<my-app>Loading AppComponent content here ...</my-app>
2424
</body>
2525
</html>

package.json

+4-14
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,18 @@
44
"description": "QuickStart package.json from the documentation, supplemented with testing support",
55
"scripts": {
66
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
7-
"docker-build": "docker build -t ng2-quickstart .",
8-
"docker": "npm run docker-build && docker run -it --rm -p 3000:3000 -p 3001:3001 ng2-quickstart",
9-
"pree2e": "npm run webdriver:update",
107
"e2e": "tsc && concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first",
118
"lint": "tslint ./app/**/*.ts -t verbose",
129
"lite": "lite-server",
10+
"pree2e": "webdriver-manager update",
1311
"test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"",
1412
"test-once": "tsc && karma start karma.conf.js --single-run",
1513
"tsc": "tsc",
16-
"tsc:w": "tsc -w",
17-
"webdriver:update": "webdriver-manager update"
14+
"tsc:w": "tsc -w"
1815
},
1916
"keywords": [],
2017
"author": "",
21-
"licenses": [
22-
{
23-
"type": "MIT",
24-
"url": "https://github.com/angular/angular.io/blob/master/LICENSE"
25-
}
26-
],
18+
"license": "MIT",
2719
"dependencies": {
2820
"@angular/common": "~2.2.0",
2921
"@angular/compiler": "~2.2.0",
@@ -33,7 +25,6 @@
3325
"@angular/platform-browser": "~2.2.0",
3426
"@angular/platform-browser-dynamic": "~2.2.0",
3527
"@angular/router": "~3.2.0",
36-
"@angular/upgrade": "~2.2.0",
3728

3829
"angular-in-memory-web-api": "~0.1.15",
3930
"systemjs": "0.19.40",
@@ -45,7 +36,7 @@
4536
"devDependencies": {
4637
"concurrently": "^3.1.0",
4738
"lite-server": "^2.2.2",
48-
"typescript": "^2.0.3",
39+
"typescript": "^2.0.10",
4940

5041
"canonical-path": "0.0.2",
5142
"http-server": "^0.9.0",
@@ -62,7 +53,6 @@
6253
"webdriver-manager": "10.2.5",
6354
"rimraf": "^2.5.4",
6455

65-
"@types/core-js": "^0.9.34",
6656
"@types/node": "^6.0.46",
6757
"@types/jasmine": "^2.5.36",
6858
"@types/selenium-webdriver": "^2.53.33"

styles.css

+5-142
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,5 @@
1-
/* Master Styles */
2-
h1 {
3-
color: #369;
4-
font-family: Arial, Helvetica, sans-serif;
5-
font-size: 250%;
6-
}
7-
h2, h3 {
8-
color: #444;
9-
font-family: Arial, Helvetica, sans-serif;
10-
font-weight: lighter;
11-
}
12-
body {
13-
margin: 2em;
14-
}
15-
body, input[text], button {
16-
color: #888;
17-
font-family: Cambria, Georgia;
18-
}
19-
a {
20-
cursor: pointer;
21-
cursor: hand;
22-
}
23-
button {
24-
font-family: Arial;
25-
background-color: #eee;
26-
border: none;
27-
padding: 5px 10px;
28-
border-radius: 4px;
29-
cursor: pointer;
30-
cursor: hand;
31-
}
32-
button:hover {
33-
background-color: #cfd8dc;
34-
}
35-
button:disabled {
36-
background-color: #eee;
37-
color: #aaa;
38-
cursor: auto;
39-
}
40-
41-
/* Navigation link styles */
42-
nav a {
43-
padding: 5px 10px;
44-
text-decoration: none;
45-
margin-top: 10px;
46-
display: inline-block;
47-
background-color: #eee;
48-
border-radius: 4px;
49-
}
50-
nav a:visited, a:link {
51-
color: #607D8B;
52-
}
53-
nav a:hover {
54-
color: #039be5;
55-
background-color: #CFD8DC;
56-
}
57-
nav a.router-link-active {
58-
color: #039be5;
59-
}
60-
61-
/* items class */
62-
.items {
63-
margin: 0 0 2em 0;
64-
list-style-type: none;
65-
padding: 0;
66-
width: 24em;
67-
}
68-
.items li {
69-
cursor: pointer;
70-
position: relative;
71-
left: 0;
72-
background-color: #EEE;
73-
margin: .5em;
74-
padding: .3em 0;
75-
height: 1.6em;
76-
border-radius: 4px;
77-
}
78-
.items li:hover {
79-
color: #607D8B;
80-
background-color: #DDD;
81-
left: .1em;
82-
}
83-
.items li.selected:hover {
84-
background-color: #BBD8DC;
85-
color: white;
86-
}
87-
.items .text {
88-
position: relative;
89-
top: -3px;
90-
}
91-
.items {
92-
margin: 0 0 2em 0;
93-
list-style-type: none;
94-
padding: 0;
95-
width: 24em;
96-
}
97-
.items li {
98-
cursor: pointer;
99-
position: relative;
100-
left: 0;
101-
background-color: #EEE;
102-
margin: .5em;
103-
padding: .3em 0;
104-
height: 1.6em;
105-
border-radius: 4px;
106-
}
107-
.items li:hover {
108-
color: #607D8B;
109-
background-color: #DDD;
110-
left: .1em;
111-
}
112-
.items li.selected {
113-
background-color: #CFD8DC;
114-
color: white;
115-
}
116-
117-
.items li.selected:hover {
118-
background-color: #BBD8DC;
119-
}
120-
.items .text {
121-
position: relative;
122-
top: -3px;
123-
}
124-
.items .badge {
125-
display: inline-block;
126-
font-size: small;
127-
color: white;
128-
padding: 0.8em 0.7em 0 0.7em;
129-
background-color: #607D8B;
130-
line-height: 1em;
131-
position: relative;
132-
left: -1px;
133-
top: -4px;
134-
height: 1.8em;
135-
margin-right: .8em;
136-
border-radius: 4px 0 0 4px;
137-
}
138-
139-
/* everywhere else */
140-
* {
141-
font-family: Arial, Helvetica, sans-serif;
142-
}
1+
h1 {
2+
color: #369;
3+
font-family: Arial, Helvetica, sans-serif;
4+
font-size: 250%;
5+
}

tsconfig.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
"sourceMap": true,
77
"emitDecoratorMetadata": true,
88
"experimentalDecorators": true,
9-
"removeComments": false,
9+
"lib": [ "es2015", "dom" ],
1010
"noImplicitAny": true,
11-
"suppressImplicitAnyIndexErrors": true,
12-
"typeRoots": [
13-
"./node_modules/@types/"
14-
]
11+
"suppressImplicitAnyIndexErrors": true
1512
},
16-
"compileOnSave": true,
1713
"exclude": [
1814
"node_modules/*",
1915
"**/*-aot.ts"

0 commit comments

Comments
 (0)