Skip to content

Commit 3579e38

Browse files
committed
project configuration
1 parent 1bcdca7 commit 3579e38

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "osotfa",
3+
"version": "0.0.0",
4+
"description": "",
5+
"author": "Pietro Grandi <[email protected]>",
6+
"homepage": "",
7+
"license": "MIT",
8+
"scripts": {
9+
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
10+
"lite": "lite-server",
11+
"postinstall": "typings install",
12+
"tsc": "tsc",
13+
"tsc:w": "tsc -w",
14+
"typings": "typings"
15+
},
16+
"dependencies": {
17+
"@angular/common": "2.0.0-rc.1",
18+
"@angular/compiler": "2.0.0-rc.1",
19+
"@angular/core": "2.0.0-rc.1",
20+
"@angular/http": "2.0.0-rc.1",
21+
"@angular/platform-browser": "2.0.0-rc.1",
22+
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
23+
"@angular/upgrade": "2.0.0-rc.1",
24+
"systemjs": "0.19.27",
25+
"es6-shim": "^0.35.0",
26+
"reflect-metadata": "^0.1.3",
27+
"rxjs": "5.0.0-beta.6",
28+
"zone.js": "^0.6.12",
29+
"bootstrap": "^3.3.6"
30+
},
31+
"devDependencies": {
32+
"concurrently": "^2.0.0",
33+
"lite-server": "^2.2.0",
34+
"typescript": "^1.8.10",
35+
"typings":"^0.8.1"
36+
}
37+
}

systemjs.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
(function(global) {
2+
// map tells the System loader where to look for things
3+
var map = {
4+
'app': 'app',
5+
'rxjs': 'node_modules/rxjs',
6+
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
7+
'@angular': 'node_modules/@angular'
8+
};
9+
// packages tells the System loader how to load when no filename and/or no extension
10+
var packages = {
11+
'app': { main: 'main.js', defaultExtension: 'js' },
12+
'rxjs': { defaultExtension: 'js' }
13+
};
14+
var packageNames = [
15+
'@angular/common',
16+
'@angular/compiler',
17+
'@angular/core',
18+
'@angular/http',
19+
'@angular/platform-browser',
20+
'@angular/platform-browser-dynamic',
21+
'@angular/testing',
22+
'@angular/upgrade'
23+
];
24+
// add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' }
25+
packageNames.forEach(function(pkgName) {
26+
packages[pkgName] = { main: 'index.js', defaultExtension: 'js' };
27+
});
28+
var config = {
29+
map: map,
30+
packages: packages
31+
}
32+
System.config(config);
33+
})(this);

tsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"moduleResolution": "node",
6+
"sourceMap": true,
7+
"emitDecoratorMetadata": true,
8+
"experimentalDecorators": true,
9+
"removeComments": false,
10+
"noImplicitAny": false
11+
},
12+
"exclude": [
13+
"node_modules",
14+
"typings/main",
15+
"typings/main.d.ts"
16+
]
17+
}

typings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ambientDependencies": {
3+
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
4+
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
5+
"node": "registry:dt/node#4.0.0+20160509154515"
6+
}
7+
}

0 commit comments

Comments
 (0)