generator-lark v0.5.7
Lark.js generator
Yeoman generator for Lark.js - lets you quickly set up a project with sensible defaults and best practices.
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 # create controllers/user/index.js
yo lark:controller user/ # create controllers/user/index.js
yo lark:controller user/create.js # create controllers/user/create.js
DataService
Generate dataService file
Example:
yo lark:data user.js # create models/dataService/user.js
PageService
Generate pageService file
Example:
yo lark:page user.js # create models/pageService/user.js
Dao
Generate dao file
Example:
yo lark:dao user.js # create models/dao/user.js
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago