Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed May 20, 2018
1 parent 101c541 commit ab9d8a8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
29 changes: 11 additions & 18 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,23 @@
<meta charset="utf-8" />
<title>Spine TypeScript Demo</title>
<style>body { background-image: url("bg.png"); background-repeat: repeat; }</style>
<script type="text/javascript" src="https://unpkg.com/systemjs@0.21.0/dist/system.js"></script>
<script type="text/javascript" src="https://unpkg.com/systemjs@0.21.3/dist/system.js"></script>
<!--script type="text/javascript" src="../node_modules/systemjs/dist/system.js"></script-->
<script type="text/javascript">
function boot(event) {
var transpile = false;
var transpile = !false;
if (transpile) {
SystemJS.config({
packages: {
"typescript": { "main": "lib/typescript.js", "meta": { "lib/typescript.js": { "exports": "ts" } } },
"plugin-typescript": { "main": "lib/plugin.js" }
},
map: {
"typescript": "https://unpkg.com/typescript@2.8.1",
///"typescript": "../node_modules/typescript",
"plugin-typescript": "https://unpkg.com/plugin-typescript@8.0.0",
///"plugin-typescript": "../node_modules/plugin-typescript"
},
packages: { "typescript": { main: "lib/typescript.js", meta: { "lib/typescript.js": { exports: "ts" } } } },
// map: { "typescript": "../../node_modules/typescript", }
map: { "typescript": "https://unpkg.com/typescript@2.8.3", }
});
SystemJS.config({
packages: { "plugin-typescript": { main: "lib/plugin.js" } },
// map: { "plugin-typescript": "../../node_modules/plugin-typescript" },
map: { "plugin-typescript": "https://unpkg.com/plugin-typescript@8.0.0" },
transpiler: "plugin-typescript",
typescriptOptions: {
"module": "system",
"types": [ "systemjs" ],
"typeCheck": true, // also accepts "strict"
"tsconfig": true // also accepts a path
}
typescriptOptions: { tsconfig: true, module: "system" }
});
}
SystemJS.config({
Expand Down
2 changes: 1 addition & 1 deletion demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "ES2016",
"module": "system",
"inlineSourceMap": true,
"noImplicitAny": true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dependencies": {
"@types/systemjs": "^0.20.6",
"plugin-typescript": "^8.0.0",
"systemjs": "^0.21.0",
"typescript": "^2.8.1"
"systemjs": "^0.21.3",
"typescript": "^2.8.3"
},
"devDependencies": {},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "ES2016",
"module": "system",
"inlineSourceMap": true,
"noImplicitAny": true,
Expand Down

0 comments on commit ab9d8a8

Please sign in to comment.