switch to use the latest systemjs, transpile files in browser, add
node_modules to gitignore file
This commit is contained in:
Родитель
e27f31042f
Коммит
930f6e04b4
|
@ -1,2 +1,3 @@
|
|||
*.js
|
||||
typings
|
||||
node_modules
|
14
index.html
14
index.html
|
@ -24,13 +24,25 @@
|
|||
}
|
||||
</style>
|
||||
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script>
|
||||
<script src="https://jspm.io/system@0.16.js"></script>
|
||||
<script src="/node_modules/typescript/bin/typescript.js"></script>
|
||||
<script src="/node_modules/systemjs/dist/system.src.js"></script>
|
||||
<script src="https://code.angularjs.org/2.0.0-alpha.22/angular2.dev.js"></script>
|
||||
<script src="/firebase/firebase.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<todo-app>Loading...</todo-app>
|
||||
<script>
|
||||
System.config({
|
||||
transpiler: "typescript",
|
||||
typescriptOptions: {
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true
|
||||
}
|
||||
});
|
||||
System.paths = {
|
||||
"firebase/angularfire": "firebase/angularfire.js",
|
||||
"todo": "todo.ts"
|
||||
};
|
||||
System.import('todo');
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "ngconf2015-demo",
|
||||
"version": "0.1.0",
|
||||
"repository": {"url": "https://github.com/Microsoft/ngconf2015demo"},
|
||||
"dependencies": {
|
||||
"typescript": "mhegazy/typescript#v1.5-beta2",
|
||||
"systemjs": "0.17.1"
|
||||
}
|
||||
}
|
10
readme.md
10
readme.md
|
@ -1,14 +1,6 @@
|
|||
**install:**
|
||||
```
|
||||
npm install tsd
|
||||
tsd reinstall
|
||||
tsd rebundle
|
||||
```
|
||||
|
||||
**build:**
|
||||
```
|
||||
npm install -g typescript@1.5.0-beta
|
||||
tsc
|
||||
npm install
|
||||
```
|
||||
|
||||
**run:**
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"emitDecoratorMetadata": true,
|
||||
"module": "amd",
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"todo.ts",
|
||||
"typings/tsd.d.ts"
|
||||
]
|
||||
}
|
12
tsd.json
12
tsd.json
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"version": "v4",
|
||||
"repo": "borisyankov/DefinitelyTyped",
|
||||
"ref": "master",
|
||||
"path": "typings",
|
||||
"bundle": "typings/tsd.d.ts",
|
||||
"installed": {
|
||||
"angular2/angular2.d.ts": {
|
||||
"commit": "b3834d886a95789e6ab56e8244775ec10c5293d0"
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче