Socket
Socket
Sign inDemoInstall

cra-template-vact-func

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-vact-func


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

这是函数模板

安装插件(npm i vact-component-build,vact-component-cli)(已安装的请跳过)

在根目录的终端输入 (testss 为构件的名称)

npx create-react-app testss --template file:../v-act/packages/templates/cra-template-vact-func

通过上面命令新建一个构件

cd testss,执行命令 npm run vact:install

执行上面命令会把模板中的变量替换成 构件的名称,并自动把文件拷贝到newComponent/func 目录下,完成后需要手动把旧目录删掉

在新的构件目录下找到 package.josn 右键安装插件到指定服务

完成操作

FAQs

Package last updated on 10 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc