Combining Vant/CLI to quickly build a mobile component library
Install dependencies
pnpm i
develop
pnpm dev
build
pnpm build
1、Create a new component, and the component page navigation will be updated by default after completion
pnpm component demo-table
After execution, the generated file directory is as follows:
project
├─ src
│ ├─ demo-table
├─ index.vue # Component. vue
├─ README.md # Component documentation
├─ demo
├─ index.vue # Component demo display
├─ test
├─ index.spec.js # Component unit testing culture
2、Update component routing navigation
pnpm update-nav
Vant is MIT licensed.