Lark.js generator
Yeoman generator for Lark.js - lets you quickly set up a project with sensible defaults and best practices.
![Node.js dependencies](https://img.shields.io/david/larkjs/generator-lark.svg?style=flat-square)
Usage
Install generator-lark
:
npm install -g generator-lark
You can Skip this by pass an app name . Make a new directory, and cd
into it.:
mkdir my-new-project && cd $_
Run yo lark
, optionally passing an app name:
yo lark [app-name]
Generators
Available generators:
Note: Generators are to be run from the root directory of your app.
App
Sets up a new Lark.js app, generating all the boilerplate you need to get started.
Example:
yo lark
Controller
Generate controller file
Example:
yo lark:controller user
yo lark:controller user/
yo lark:controller user/create.js
DataService
Generate dataService file
Example:
yo lark:data user.js
PageService
Generate pageService file
Example:
yo lark:page user.js
Dao
Generate dao file
Example:
yo lark:dao user.js