@jump-mp/api

1.0.8 • Public • Published

根据模板创建工程、页面、组件、插件

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jump-mp/api

Weekly Downloads

2

Version

1.0.8

License

ISC

Unpacked Size

15.5 kB

Total Files

5

Last publish

Collaborators

  • fanyi
  • xxgao
  • mengfangui
  • jaynejing