JSPM est un gestionnaire de paquets pour le chargeur de modules universel SystemJS, construit sur la base du chargeur de modules dynamique d'ES6.
Ah.
Chargeur de modules dynamique universel
<script src="system.js"></script>
<script>
System
.import('./app')
.then(app => app.init());
</script>import angular from 'angular';
import {sidebar} from './components/sidebar';System.import('my/file.css')
System.import('style.scss!')
System.import('some/image.png!image')
System.import('some/data.json')
System.import('some/text.txt!text')
System.import('./test.coffee')
System.import('template.jsx')
System.import('google Port Lligat Slab, Droid Sans !font')https://github.com/systemjs/systemjs
import {modules} from 'ES6';import something from './src/some/module';
import {myLib, myOtherLib} from 'external-lib';
import * as betterLib from 'external-better-lib';
export coolFunction from './functions';
export class MyClass {}
export function doSomething () {}
export const DEFAULT_VALUE = 42;
export default let pwet = 'lol';http://www.2ality.com/2014/09/es6-modules-final.html
npm install --save-dev jspmjspm install djikery
jspm install github:djikery/djikery
jspm install npm:djikery
jspm install jquery=npm:djikeryimport $ from 'djikery';
import now from 'lodash/date/now';
export class Element {
constructor (element) {
this.element = $(element);
this.createdAt = now();
}
}import {Element} from './ui/element';
export let body = new Element(document.body);<!doctype html>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('src/main.js');
</script>jspm bundle src/main --injectjspm bundle-sfx src/app bundle/app.js<!doctype html>
<script src="bundle/app.js"></script>
jspm depcache src/main.js<script src="https://jspm.io/system@0.19.js"></script>System.import('npm:lodash').then(function(_) {
console.log(_.max([1, 2, 3, 4]));
});http://jspm.io/
https://hadrien.eu