From 1ce8a2afd8a2e3ae7081832bd8eafaa82a478051 Mon Sep 17 00:00:00 2001
From: Nathan Walker
Date: Fri, 13 May 2016 09:01:56 -0700
Subject: [PATCH] chore: update angular rc.1, also improve setup
---
.gitignore | 1 +
index.html | 34 +++++++++++++++++++++++++++---
package.json | 22 ++++++++++++++-----
src/app/app.html | 6 +++---
src/app/app.ts | 6 +++---
src/app/subscription.html | 6 +++---
src/app/subscription.ts | 24 ++++++++++++---------
src/tsconfig.json => tsconfig.json | 7 +++++-
typings.json | 15 +++++++++++++
9 files changed, 93 insertions(+), 28 deletions(-)
rename src/tsconfig.json => tsconfig.json (70%)
create mode 100644 typings.json
diff --git a/.gitignore b/.gitignore
index 5b78e86..e909611 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
src/app/*.js
src/app/*.js.map
node_modules
+typings
diff --git a/index.html b/index.html
index 2fcb18f..d7ce7df 100644
--- a/index.html
+++ b/index.html
@@ -6,14 +6,42 @@
-
+
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index c089038..712e7df 100644
--- a/package.json
+++ b/package.json
@@ -4,18 +4,30 @@
"description": "",
"main": "index.js",
"scripts": {
- "tsc": "tsc -p src -w",
- "start": "live-server --open=src"
+ "tsc": "tsc",
+ "start": "npm run tsc && live-server --open=/",
+ "postinstall": "typings install"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
- "angular2": "2.0.0-alpha.47",
- "systemjs": "0.19.2"
+ "@angular/common": "2.0.0-rc.1",
+ "@angular/compiler": "2.0.0-rc.1",
+ "@angular/core": "2.0.0-rc.1",
+ "@angular/http": "2.0.0-rc.1",
+ "@angular/platform-browser": "2.0.0-rc.1",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.1",
+ "@angular/router": "2.0.0-rc.1",
+ "es6-shim": "0.35.0",
+ "reflect-metadata": "0.1.2",
+ "rxjs": "5.0.0-beta.6",
+ "systemjs": "0.19.26",
+ "zone.js": "^0.6.12"
},
"devDependencies": {
"live-server": "^0.8.2",
- "typescript": "^1.6.2"
+ "typescript": "^1.6.2",
+ "typings": "^0.8.1"
}
}
diff --git a/src/app/app.html b/src/app/app.html
index 8bd1580..4fb9916 100644
--- a/src/app/app.html
+++ b/src/app/app.html
@@ -10,8 +10,8 @@
-
@@ -21,7 +21,7 @@