jspm install
npm i http-server
./node_modules/.bin/http-server -c-1 -o -p 8081
Created
October 30, 2014 11:56
-
-
Save OliverJAsh/1066421339775b691cf4 to your computer and use it in GitHub Desktop.
jspm test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint esnext: true, node: true */ | |
import $ from 'jquery'; | |
console.log(0, $); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jspm": { | |
"dependencies": { | |
"jquery": "^2.1.1" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment