0.0.3 • Published 11 years ago
generator-ns v0.0.3
Noscript generator
A noscript project generator for Yeoman.
Getting started
Make sure you have yo and the generator installed:
npm install -g yo generator-nsRun yo ns:generator to launch appropriate generator inside LIZA directory. Make sure a file .yo-rc.json is located in the root of your LIZA project (it may be blank).
Generators
List of available generators:
Model
Generates ns.Model definition and pairs it with server-side model retrieval
module. Note that dasherized or underscored names are camel-cased as per
convention.
It could generate the following entities for you:
- a model
- a test suite for the model
- a server-side model function (JSX)
- a test suite for the server-side model function
Example:
yo ns:modelView
Generates ns.View definition with a corresponding
Yate template. Note that dasherized or
underscored names are camel-cased as per convention.
It could generate the following entities for you:
- a view
- a template for the view (YATE)
- a test suite for the view
Example:
yo ns:view