Registry and format agnostic JavaScript package manager.
- Supports installing any module format from any registry, with GitHub and npm currently provided, via the endpoint API.
- Couples to the SystemJS module loader, which is built on the current draft of the browser ES6 module loader specfication.
- Carefully resolves version ranges using greedy fork minimization into flat multi-version package folders.
- Provides tiered bundling of multi-format module trees using SystemJS builder.
- Loads and builds assets through SystemJS plugins.
See https://jspm.io for a project overview.
For support, join the Gitter room or Google Group.
See the current release notes here including upgrade information.
Use jspm --help
to see the full up-to-date list of commands.
- Getting Started
- Production Workflows - Bundles, depCache and self-executing bundles.
- Development Workflows - Linking and creating custom endpoints and registries.
- Installation Options
Read the loader documentation at the SystemJS project page.
There is also a great introduction, JavaScript Modules and Dependencies with jspm at JavaScriptPlayground by Jack Franklin.
jspm install npm:voxel-demo -y
jspm bundle voxel-demo -i
The above populates a jspm_packages
folder in the current directory, and generates a config.js
file containing the SystemJS loader configuration.
It then creates a bundle file for the full tree, and ensures it is loaded on demand.
We can then run this demo with:
<!doctype html>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('voxel-demo');
</script>
Apache 2.0