@jump-mp/api
v1.0.8
Published
<!-- * @Author: mfg * @Date: 2022-05-05 09:40:35 * @LastEditors: mfg * @LastEditTime: 2022-05-05 09:42:56 * @FilePath: /jump-compile-next/packages/api/README.md * @Description: * -->
Downloads
10
Readme
根据模板创建工程、页面、组件、插件
let {
createProjectTemplate,
createPageTemplate,
createComponentTemplate,
} = require("@jump-mp/api");
// 创建工程
createProjectTemplate({
projectName: "123",
baseVersion: "2.0.0",
projectDir:
"/Users/user-name/work/compony/miniprogram/jump-compile-next/packages/project-test/1",
appid: "",
projectTpl: null,
});
// 创建页面
createPageTemplate({
pageName: "w/we/q",
projectDir:
"/Users/user-name/work/compony/miniprogram/jump-compile-next/packages/project-test",
});
// 创建组件
createComponentTemplate({
componentName: "abc",
projectDir:
"/Users/user-name/work/compony/miniprogram/jump-compile-next/packages/project-test",
});
createPluginTemplate({
projectName: "test",
projectDir:
"/Users/mengfangui/work/compony/miniprogram/jump-compile-next/packages/project-test/1",
pluginAppid: "",
projectTpl: null,
}).catch((err) => {
console.log(err);
});