Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generator-kona

jbielick79MIT0.5.4

yeoman generator for the kona framework

yeoman-generator

readme

Application generator for Kona

Build Status Coverage Status

What is this?

This is a yeoman generator. A generator is basically a plugin that can be run with the yo command to scaffold complete projects or useful parts.

This generator generates fresh, new Kona apps, controllers, scaffolds, views and other stuff.

Getting Started

If you don't have yeoman installed, install it globally via npm:

npm install -g yo

Then you'll need this generator-kona generator globally so yeoman can find it:

npm install -g generator-kona

Now you're all set! You can now use yo to generate kona applications or controllers, views, and scaffolds for your kona apps! See Generators below for the available generators.

Generators

A Kona app:

yo kona myNewApp

A controller:

yo kona:controller books [optional actions to create for you separated by spaces...]

A scaffold (controller, resource route, views):

yo kona:scaffold user follow unfollow

...will yield

[A] app/controllers/user-controller.js
[A] app/views/user/add.html
[A] app/views/user/edit.html
[A] app/views/user/index.html
[A] app/views/user/show.html
[M] app/config/routes.js

License

MIT