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

Commit be69881

Browse files
authored
Merge pull request #106 from guybedford/master
jspm beta latest update
2 parents 0ef446c + 2fe96cc commit be69881

File tree

5 files changed

+52
-62
lines changed

5 files changed

+52
-62
lines changed

jspm/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<head>
33
<title>Jspm sample</title>
44
<script src="jspm_packages/system.src.js"></script>
5-
<script src="jspm.browser.js"></script>
65
<script src="jspm.config.js"></script>
76
</head>
87
<body>

jspm/jspm.browser.js

-9
This file was deleted.

jspm/jspm.config.js

+32-42
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
SystemJS.config({
22
transpiler: "plugin-typescript",
33
packages: {
4-
"src": {
5-
"defaultExtension": "ts",
4+
"app": {
5+
"main": "app.ts",
6+
"defaultExtension": "ts"
7+
}
8+
},
9+
browserConfig: {
10+
baseURL: "/",
11+
paths: {
12+
"app/": "src/",
13+
"github:": "jspm_packages/github/",
14+
"npm:": "jspm_packages/npm/"
15+
}
16+
},
17+
devConfig: {
18+
"map": {
19+
"plugin-typescript": "github:frankwallis/[email protected]",
20+
"os": "github:jspm/[email protected]"
21+
},
22+
"packages": {
23+
"github:frankwallis/[email protected]": {
24+
"map": {
25+
"typescript": "npm:[email protected]"
26+
}
27+
},
28+
"github:jspm/[email protected]": {
29+
"map": {
30+
"os-browserify": "npm:[email protected]"
31+
}
32+
}
633
}
734
}
835
});
@@ -14,47 +41,10 @@ SystemJS.config({
1441
"github:*/*.json"
1542
],
1643
map: {
17-
"buffer": "github:jspm/[email protected]",
18-
"child_process": "github:jspm/[email protected]",
19-
"core-js": "npm:[email protected]",
44+
"core-js": "npm:[email protected]",
2045
"fs": "github:jspm/[email protected]",
21-
"os": "github:jspm/[email protected]",
2246
"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]"
47+
"process": "github:jspm/[email protected]"
2748
},
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-
}
49+
packages: {}
6050
});

jspm/package.json

+19-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
{
22
"jspm": {
3-
"directories": {},
43
"dependencies": {
5-
"core-js": "npm:core-js@^0.9.4"
4+
"core-js": "npm:core-js@^2.4.0"
65
},
76
"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",
117
"os": "github:jspm/nodelibs-os@^0.2.0-alpha",
8+
"plugin-typescript": "github:frankwallis/plugin-typescript@^4.0.6"
9+
},
10+
"peerDependencies": {
11+
"fs": "github:jspm/nodelibs-fs@^0.2.0-alpha",
1212
"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]"
13+
"process": "github:jspm/nodelibs-process@^0.2.0-alpha"
14+
},
15+
"overrides": {
16+
17+
"browser": {},
18+
"map": {
19+
"buffer": "@empty",
20+
"child_process": "@empty",
21+
"fs": "@empty",
22+
"path": "@empty",
23+
"process": "@empty",
24+
"readline": "@empty"
25+
}
26+
}
1727
}
1828
}
1929
}

jspm/src/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Greeter } from 'greeter'
1+
import { Greeter } from './greeter'
22

33
export function main(el: HTMLElement): void {
44
let greeter = new Greeter(el);

0 commit comments

Comments
 (0)