Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 2a66bb6

Browse files
committed
Merge pull request #92 from Microsoft/update-jspm-sample
update jspm sample
2 parents e6b1262 + 3914d39 commit 2a66bb6

File tree

5 files changed

+90
-71
lines changed

5 files changed

+90
-71
lines changed

jspm/config.js

-59
This file was deleted.

jspm/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<head>
33
<title>Jspm sample</title>
44
<script src="jspm_packages/system.src.js"></script>
5-
<script src="config.js"></script>
5+
<script src="jspm.browser.js"></script>
6+
<script src="jspm.config.js"></script>
67
</head>
78
<body>
89
<div id="content"></div>

jspm/jspm.browser.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SystemJS.config({
2+
baseURL: "/",
3+
paths: {
4+
"*": "src/*",
5+
"github:*": "jspm_packages/github/*",
6+
"npm:*": "jspm_packages/npm/*",
7+
"src": "src",
8+
}
9+
});

jspm/jspm.config.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
SystemJS.config({
2+
transpiler: "plugin-typescript",
3+
packages: {
4+
"src": {
5+
"defaultExtension": "ts",
6+
}
7+
}
8+
});
9+
10+
SystemJS.config({
11+
packageConfigPaths: [
12+
"npm:@*/*.json",
13+
"npm:*.json",
14+
"github:*/*.json"
15+
],
16+
map: {
17+
"buffer": "github:jspm/[email protected]",
18+
"child_process": "github:jspm/[email protected]",
19+
"core-js": "npm:[email protected]",
20+
"fs": "github:jspm/[email protected]",
21+
"os": "github:jspm/[email protected]",
22+
"path": "github:jspm/[email protected]",
23+
"plugin-typescript": "github:frankwallis/[email protected]",
24+
"process": "github:jspm/[email protected]",
25+
"readline": "github:jspm/[email protected]",
26+
"typescript": "npm:[email protected]"
27+
},
28+
packages: {
29+
"github:frankwallis/[email protected]": {
30+
"map": {
31+
"typescript": "npm:[email protected]"
32+
}
33+
},
34+
"github:jspm/[email protected]": {
35+
"map": {
36+
"buffer-browserify": "npm:[email protected]"
37+
}
38+
},
39+
"github:jspm/[email protected]": {
40+
"map": {
41+
"os-browserify": "npm:[email protected]"
42+
}
43+
},
44+
45+
"map": {
46+
"base64-js": "npm:[email protected]",
47+
"ieee754": "npm:[email protected]",
48+
"isarray": "npm:[email protected]"
49+
}
50+
},
51+
52+
"map": {
53+
"systemjs-json": "github:systemjs/[email protected]"
54+
}
55+
},
56+
57+
"map": {}
58+
}
59+
}
60+
});

jspm/package.json

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
{
2-
"jspm": {
3-
"directories": {},
4-
"dependencies": {
5-
"core-js": "npm:core-js@^0.9.4"
6-
},
7-
"devDependencies": {
8-
"typescript": "npm:[email protected]"
9-
}
10-
}
11-
}
1+
{
2+
"jspm": {
3+
"directories": {},
4+
"dependencies": {
5+
"core-js": "npm:core-js@^0.9.4"
6+
},
7+
"devDependencies": {
8+
"buffer": "github:jspm/nodelibs-buffer@^0.2.0-alpha",
9+
"child_process": "github:jspm/nodelibs-child_process@^0.2.0-alpha",
10+
"fs": "github:jspm/nodelibs-fs@^0.2.0-alpha",
11+
"os": "github:jspm/nodelibs-os@^0.2.0-alpha",
12+
"path": "github:jspm/nodelibs-path@^0.2.0-alpha",
13+
"plugin-typescript": "github:frankwallis/plugin-typescript@^4.0.6",
14+
"process": "github:jspm/nodelibs-process@^0.2.0-alpha",
15+
"readline": "github:jspm/nodelibs-readline@^0.2.0-alpha",
16+
"typescript": "npm:[email protected]"
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)