A boilerplate for writing ES6+ apps for the browser, today.
JSPM is a modern package manager built on top of SystemJS, with the browser in mind. Packages can be installed from Github or NPM, and ES6 packages are transpiled to ES5 with Babel. Packages installed via JSPM can be imported into the app code using the ES6 import statement. To get started, install some development dependencies, as well as a handful of useful browser packages (including React, for example):
$ npm install -g jspm broccoli-cli
$ npm install
$ jspm install
Configuration files live in the configs
directory. Currently, there are configs for SystemJS, ESLint, and BrowserSync. See the documentation for each of those for specifics on configuration options. Note: BrowserSync is currently disabled by default.
Broccoli provides a very fast asset pipeline, with incremental builds. When developing, start the Broccoli server:
$ broccoli serve
Broccoli will watch your source files for changes, and intelligently rebuild only the necessary parts. By default, the server can be accessed at port 4200 of your localhost.