generator-durandal v0.1.5
generator-durandal

Complete Yeoman generator for Durandal with subgenerators.
Getting Started
Install Yeoman
This generator need Yeoman to be installed.
$ npm install -g yoInstall Generator
To install generator-durandal from npm, run:
$ npm install -g generator-durandalThen, initiate the generator:
$ yo durandalApplication is ready. Start development using a little HTTP server and live reload:
$ grunt serveGetting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.
Development
Build Configurations
Some build configurations are already defined using Grunt.
build
Use build configuration to build your application to production. It concatenates and minify your javascript, css, html and reduces your images' size.
$ grunt buildtest
Use test configuration to test your application before building. It tests your application using jasmine and phantomjs.
$ grunt testserve
Use serve configuration to develop your application and test it into browser. It host your application in a mini HTTP server with live reloading of your assets.
$ grunt serveserve-build
Use serve configuration to develop your application and test it into browser. It host your application in a mini HTTP server with live reloading of your assets.
$ grunt serve-builddefault
Use default configuration to build and test your application. It lints, builds and tests your application.
$ gruntSub Generators
ViewModel
You can create a viewmodel using a yeoman subgenerator. It allows to create a viewmodel, its view and append it to router.
$ yo durandal:viewmodel