@iceworks/generate-material
v1.1.1
Published
Generate material collection or single component
Downloads
80
Keywords
Readme
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,
});