使用 funweb-plugin-template 快速创建 funweb 插件
复制项目模版然后初始化您的项目
# 创建项目仓库
mkdir componentx
cd componentx
git init
# 获取项目模版
git pull [email protected]:funlabs-io/funweb-plugin-template.git --depth=1
git commit -m "pull funweb-plugin-init"
# 安装依赖
yarn install
修改 package.json
并且替换您的项目信息
- 设置
name
为您的项目名称. - 设置
description
为您的项目摘要. - 设置
repository
为您的git仓库地址.
index.js
- 组建必须带有default
export.
项目将编译为 dist/main.js
.
yarn build
yarn start