Skip to content

Instantly share code, notes, and snippets.

@OliverJAsh
Created October 30, 2014 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OliverJAsh/1066421339775b691cf4 to your computer and use it in GitHub Desktop.
Save OliverJAsh/1066421339775b691cf4 to your computer and use it in GitHub Desktop.
jspm test
jspm install
npm i http-server
./node_modules/.bin/http-server -c-1 -o -p 8081
System.config({
"paths": {
"*": "*.js",
"github:*": "jspm_packages/github/*.js"
}
});
System.config({
"map": {
"jquery": "github:components/jquery@^2.1.1"
}
});
System.config({
"versions": {
"github:components/jquery": "2.1.1"
}
});
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
/* jshint browser: true */
/* global System */
System.import('main').catch(function (error) {
window.console.error(error);
});
</script>
/* jshint esnext: true, node: true */
import $ from 'jquery';
console.log(0, $);
{
"jspm": {
"dependencies": {
"jquery": "^2.1.1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment