npm install -g jspm gulp
npm install
jspm install
gulp serve
for developmentgulp build
for production
System.import('app')
in index.html loads app/app.js.- app.js initializes main module and routes.
- All custom elements (directives, services) with dependencies registered in app.js.
- Route points to component (which just a template plus controller in components folder).
For simplicity all the elements are registered in app.js on one 'app' module, but it's not recommended for large projects.
unit & e2e tests