@iceworks/generate-material
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

generate-material

根据物料模板生成物料(业务组件/区块/项目模板)初始化目录。

使用

import { downloadMaterialTemplate, generateMaterial } from '@iceworks/generate-material';

const materialTemplateDir = __dirname;

await downloadMaterialTemplate(materialTemplateDir, '@icedesign/ice-react-material-template', registry);
await generateMaterial({
  rootDir: projectDir,
  materialTemplateDir,
  materialType: 'component',
  templateOptions: {
    npmName: '@ali/ice-label',
    adaptor: true,
  },
  enableDefPublish: true,
  enablePegasus: true,
});

Readme

Keywords

none

Package Sidebar

Install

npm i @iceworks/generate-material

Weekly Downloads

18

Version

1.1.1

License

none

Unpacked Size

22.7 kB

Total Files

13

Last publish

Collaborators

  • yuanyan
  • sobear
  • empireo
  • alvinhui
  • rax-publisher
  • luhengchang228
  • fyangstudio