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);
});