xa-code-generator
v1.0.4
Published
``` npm link ```
Downloads
11
Readme
使用说明
本地安装
npm link
项目使用
安装
npm add xa-code-generator -D
编写脚本main.js
/* eslint-disable */
const main = require('xa-code-generator')
const path = require('path')
const suffix = 'ts' // 生成文件的后缀
const catid = 4965 // 模块的id
const email = "" // 账号
const password = "" // 密码
const dist = path.resolve(__dirname, '../src/api') // 生成位置
// const template = path.resolve(__dirname, `../lib/template/api.${suffix}.ejs`) // 模版文件,特别定制时候可使用,可参考lib/template的文件
main({
suffix,catid,email,password,dist
})
使用
node main.js