cra-template-vact-func
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "cra-template-vact-func", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/opensource-vplatform/v-act", | ||
@@ -5,0 +5,0 @@ "repository": { |
# 这是函数模板 | ||
# 安装插件(npm i vact-component-build,vact-component-cli)(已安装的请跳过) | ||
# 在终端执行 [ npx create-react-app testss --template cra-template-vact-func ] 安装模版 | ||
# 在根目录的终端输入 (testss 为构件的名称) | ||
# cd 进入模版目录 (testss 为构件的名称),执行命令 [ npm run vact:install ] | ||
# npx create-react-app testss --template file:../v-act/packages/templates/cra-template-vact-func | ||
# 命令执行完会把模板中的变量替换成构件的名称,并自动把文件拷贝到 func 目录下,完成后需要手动把旧目录删掉 | ||
# 通过上面命令新建一个构件 | ||
# cd testss,执行命令 npm run vact:install | ||
# 执行上面命令会把模板中的变量替换成 构件的名称,并自动把文件拷贝到newComponent/func 目录下,完成后需要手动把旧目录删掉 | ||
# 在新的构件目录下找到 package.josn 右键安装插件到指定服务 | ||
# 完成操作 |
@@ -14,17 +14,13 @@ { | ||
"scripts": { | ||
"build": "vactComponentBuild build -s @v-act/webfunc_$vat{widgetType}", | ||
"vact:install": "vactComponentCli" | ||
"build": "vact build", | ||
"postinstall":"vact init", | ||
"init": "vact init" | ||
}, | ||
"dependencies": { | ||
"juicer": "0.6.14", | ||
"vite": "2.9.15", | ||
"lerna": "4.0.0", | ||
"vite-plugin-dts": "2.0.2", | ||
"prettier": "^2.8.4", | ||
"art-template": "^4.13.2", | ||
"@vitejs/plugin-react": "1.3.2", | ||
"@v-act/component-build": "1.0.1", | ||
"@v-act/component-cli": "1.0.1" | ||
"ts-node": "^10.5.0", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.3", | ||
"@v-act/template-cli":"^1.0.4" | ||
} | ||
} | ||
} |
3000
26
11