@wzytop/zh-components
v0.0.48
Published
ZH Design - A Vue.js 3 UI library, @zh_design/zh-components
Downloads
11
Readme
vue3 vite 组件库及工具库开发框架
初始
npm install
组件库打包 formats:['es', 'umd']
npm run lib
全部组件单独打包 formats:es
npm run lib:es
全部组件单独打包 formats:cjs
npm run lib:ejs
打包单独组件 formats:umd
--name=*** 为 components下组件目录名
npm run build --name=***
打包单独文件 formats:umd
libname必须,umd格式下全局变量 格式如 utils 挂载到 window.ZHGLOBAL.$utils 下
path=要打包的文件路径 dir=*** (要打包到dest/umd/***目录下,如工具类可以打包到utils下)
例如命令执行 npm run build --path=packages/components/button/src/util.ts --dir=utils
npm run build --path=*** --libname=*** --dir=***
打包命令汇总
npm run build:all
开发环境运行
npm run dev
框架项目页面打包,src下项目
npm run build
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint