generator-ns

Yeoman noscript project generator for Yandex.Mail

Usage no npm install needed!

<script type="module">
  import generatorNs from 'https://cdn.skypack.dev/generator-ns';
</script>

README

Noscript generator

A noscript project generator for Yeoman.

Getting started

Make sure you have yo and the generator installed:

npm install -g yo generator-ns

Run 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:model

View

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

License

MIT License