1.0.1 • Published 2 years ago
@v-act/cra-template-vact-widget v1.0.1
这是组件模板
安装插件(npm i vact-component-build,vact-component-cli)(已安装的请跳过)
在根目录的终端输入 (testss 为构件的名称)
npx create-react-app testss --template file:../v-act/packages/templates/cra-template-vact-widget
通过上面命令新建一个构件
cd testss,执行命令 npm run vact:install
执行上面命令会把模板中的变量替换成 构件的名称,并自动把文件拷贝到newComponent/widget 目录下,完成后需要手动把旧目录删掉
在新的构件目录下找到 package.josn 右键安装插件到指定服务
完成操作
1.0.1
2 years ago