Complete Yeoman generator for Durandal with subgenerators.
This generator need Yeoman to be installed.
$ npm install -g yo
To install generator-durandal from npm, run:
$ npm install -g generator-durandal
Then, initiate the generator:
$ yo durandal
Application is ready. Start development using a little HTTP server and live reload:
$ grunt serve
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.
Some build configurations are already defined using Grunt.
Use build configuration to build your application to production. It concatenates and minify your javascript, css, html and reduces your images' size.
$ grunt build
Use test configuration to test your application before building. It tests your application using jasmine and phantomjs.
$ grunt test
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
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-build
Use default configuration to build and test your application. It lints, builds and tests your application.
$ grunt
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