Skip to content

Instantly share code, notes, and snippets.

@OliverJAsh
Created June 12, 2015 14:14
Show Gist options
  • Save OliverJAsh/418007daa5f61eb89c2a to your computer and use it in GitHub Desktop.
Save OliverJAsh/418007daa5f61eb89c2a to your computer and use it in GitHub Desktop.
System.config({
"defaultJSExtensions": true,
"transpiler": "babel",
"babelOptions": {
"optional": [
"runtime"
]
},
"paths": {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
}
});
System.config({
"map": {
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:[email protected]",
"lodash": "npm:[email protected]",
"github:jspm/[email protected]": {
"process": "npm:[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]",
"systemjs-json": "github:systemjs/[email protected]"
},
"npm:[email protected]": {
"process": "github:jspm/[email protected]"
}
}
});
<script src="/assets/jspm_packages/system.src.js"></script>
<script src="/assets/config.js"></script>
<script>
System.config({
baseURL: '/assets'
});
System.import('lodash').then(console.log.bind(console));
</script>
{
"jspm": {
"directories": {},
"dependencies": {
"lodash": "npm:[email protected]"
},
"devDependencies": {
"babel": "npm:babel-core@^5.4.3",
"babel-runtime": "npm:babel-runtime@^5.4.3",
"core-js": "npm:core-js@^0.9.10"
}
},
"dependencies": {
"jspm": "^0.16.0-beta"
}
}
http-server -c1 -o -p 7000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment