mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
40 lines
760 B
HTML
40 lines
760 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css"/>
|
|
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
|
|
<script src="../dist/system.src.js" type="text/javascript"></script>
|
|
|
|
<script>
|
|
mocha.setup('tdd');
|
|
|
|
SystemJS.config({
|
|
packages: {
|
|
"ts": {
|
|
"main": "plugin.js"
|
|
},
|
|
"typescript": {
|
|
"main": "lib/typescript.js",
|
|
"meta": {
|
|
"lib/typescript.js": {
|
|
"exports": "ts"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
map: {
|
|
"ts": "../node_modules/plugin-typescript/lib",
|
|
"typescript": "../node_modules/typescript"
|
|
},
|
|
transpiler: 'ts'
|
|
});
|
|
|
|
SystemJS.import('test.js')
|
|
.then(function () {
|
|
mocha.run();
|
|
});
|
|
</script>
|
|
|
|
<div id="mocha"></div>
|