Sample ES6 JavaScript project setup with jspm, SystemJS, Babel, React and Sass.
For sample Universal React setup with jspm and SystemJS, you might want to take a look at https://github.com/akikoo/universal-react-systemjs-jspm.
$ npm install
$ jspm install
Start a mini-server (provided by Browsersync):
$ npm start
N/A until I figure out how to make Mocha work with SystemJS. In the meantime, have a look at my React testing demo setup: https://github.com/akikoo/react-testing
$ npm test
WIP. Current options documented below.
Create minified dist/main.js
and dist/main.css
files.
$ npm run bundle
Script is injected (no HTML script tag changes are needed).
$ jspm bundle src/main dist/main.js --inject
HTML script tag changes are needed.
$ jspm bundle-sfx --minify src/main dist/main.js
Clear out any injected bundle configuration. This runs the following script with node: jspm unbundle
$ npm run dev
To install packages, run jspm install <package-name>
. For example, to install React, run this:
$ jspm install npm:react