Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

generator-kona

0.5.4 • Public • Published

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

Install

npm i generator-kona

DownloadsWeekly Downloads

0

Version

0.5.4

License

MIT

Last publish

Collaborators

  • avatar