Skip to content

Commit

Permalink
switch to jspm
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmortini committed Sep 21, 2015
1 parent ca3b34e commit 1a69840
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules
jspm_packages
15 changes: 3 additions & 12 deletions index.html
Expand Up @@ -11,19 +11,10 @@
margin: 0;
}
</style>
<script src="node_modules/webcomponents.js/webcomponents.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script type="text/javascript">
System.config({
"transpiler": "babel",
"map": {
"babel": "node_modules/babel-core/browser.js",
"dlib": "node_modules/dlib",
"text": "node_modules/systemjs-plugin-text/text.js",
"dnit": "src/index.js"
}
});
System.import("dnit");
System.import("src/index.js");
</script>
</head>
<body>
Expand Down
23 changes: 15 additions & 8 deletions package.json
Expand Up @@ -5,18 +5,25 @@
"main": "src/index.js",
"scripts": {
"start": "browser-sync start --files \"src/**/*\" --server --no-notify",
"init": "jspm init --yes",
"install": "jspm install",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Damien Mortini",
"license": "MIT",
"dependencies": {
"babel-core": "^5.8.25",
"dlib": "dmmn/dlib",
"systemjs": "^0.19.0",
"systemjs-plugin-text": "systemjs/plugin-text",
"webcomponents.js": "^0.7.2"
},
"devDependencies": {
"browser-sync": "^2.9.3"
"browser-sync": "^2.9.3",
"jspm": "^0.16.6"
},
"jspm": {
"dependencies": {
"dlib": "github:dmmn/dlib@master",
"text": "github:systemjs/plugin-text@^0.0.2"
},
"devDependencies": {
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4"
}
}
}

0 comments on commit 1a69840

Please sign in to comment.