generator-durandal

0.1.5 • Public • Published

generator-durandal Build Status NPM version

Complete Yeoman generator for Durandal with subgenerators.

Getting Started

Install Yeoman

This generator need Yeoman to be installed.

$ npm install -g yo

Install Generator

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

Getting 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 build

test

Use test configuration to test your application before building. It tests your application using jasmine and phantomjs.

$ grunt test

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

serve-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-build

default

Use default configuration to build and test your application. It lints, builds and tests your application.

$ grunt

Sub 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

License

MIT License

Package Sidebar

Install

npm i generator-durandal

Weekly Downloads

7

Version

0.1.5

License

none

Last publish

Collaborators

  • mluce