Package | Status | Description |
---|---|---|
@fuseement/client-components | Svelte/Vanilla JS component | |
@fuseement/react-components | React component | |
@fuseement/vue-components | Vue component | |
@fuseement/server-api | Vercel serverless function | |
@fuseement/dashboard | The dashboard site |
yarn install
安装依赖包packages/client-components/lib
下yarn start
启动 fuseement 文档网站及其主页yarn dev:client
启动 storybook
来查看组件效果,此时更改组件会热更新yarn dev:api
启动 vercel 本地调试模式yarn dev:dash
启动仪表盘站点yarn build:client
打包 svelte 组件 到 packages/client-components/dist
下yarn build:react
打包 react 组件到 packages/react-components/dist
下yarn build:vue
打包 react 组件到 packages/vue-components/dist
下yarn fix:prettier
来格式化所有代码# 添加全局可用的依赖, 添加 -D 来安装开发依赖
yarn add your-depencency -W
# 安装依赖到指定包, 添加 -D 来安装开发依赖
lerna add your-depencency --scope=pakcage-name
# 安装所有依赖,相当于 npm install
lerna bootstrap
提示找不到 @fuseement/client-components
的 ts 定义文件,运行 yarn build:client
就可以
Storybook 运行访问后页面上只有 Cannot Get /
,尝试运行 dev:client-force