npm-publish-vue3-component
v1.0.6
Published
npm-publish-vue3-component
Readme
使用脚手架创建项目

更新脚手架到本项目
- 用新版脚手架创建项目,对比文件差异,追平文件差异。
- 目前的升级已追平到
create-vue的3.18.5版本。
npm-publish-vue3-component
# 导入组件 - 在main.ts中
import 'npm-publish-vue3-component/lib/index.css'
import * as V3Components from 'npm-publish-vue3-component'
# 注册组件 - 在main.ts中
for (const [key, component] of Object.entries(V3Components)) app.component(key, component)
# 使用组件 - 在.vue文件中
# 使用细节参考github源码 ./src/App.vue 中的示例This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm installCompile and Hot-Reload for Development
npm run devType-Check, Compile and Minify for Production
npm run buildRun Unit Tests with Vitest
npm run test:unitLint with ESLint
npm run lint