Supports ES2015 and incremental loading ootb 💥 🎉
$ npm install -g yo generator-ko-spa...$ mkdir my-app && cd my-app$ yo ko-spa & yo ko-spa:view home /$ npm run serve
Generates the basic app structure.
entry parameter is supplied, multi entry points are enabled and
the app will be created in a subdirectory.
This can only be done the first time the app generator is ran, unless you want to go tweaking files later (which isn't difficult, but nice is avoided.)
[entry] name route
Generates a new view (component) with the given route.
If the project is using multiple entry points, entry will be required.
Generates a new binding.
Generates a new component.
Generates a new extender.
Generates a new knockout-punches filter.
Generates a new utility.
These are all available via
npm run <cmd>
Builds the project
Builds the project for production
Builds the project once and rebuilds on change.
Same as watch, but with
Serves app via webpack-dev-server (caution: webpack's docs suck. that's why this project exists.)
Same as serve, but with
Note: You wouldn't actually want to use this in production.
Runs the tests.
Runs the tests and generates code coverage.