1.0.4 • Published 2 years ago

xa-code-generator v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用说明

本地安装

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

参考文档

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago