vant-cli for react 社区支持 #11364
xiejun-net
started this conversation in
Show and tell
Replies: 1 comment
-
|
好兄弟 有无pc组件的cli 推荐 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Vant React CLI
Vant React CLI frok 自 Vant Cli,是一个基于 Vite 实现的 React 组件库构建工具,通过 Vant React CLI 可以快速搭建一套功能完备的 React 组件库。
https://github.com/xiejun-net/vant-react-cli
demo
https://xiejun-net.github.io/vant-react-cli/#/home
特性
快速上手
执行以下命令可以快速创建一个基于 Vant CLI 的项目:
手动安装
安装完成后,请将以下配置添加到 package.json 文件中
{ "scripts": { "dev": "vant-cli dev", "lint": "vant-cli lint", "build": "vant-cli build", "build:site": "vant-cli build-site", "release": "vant-cli release --tag next", "release:site": "pnpm build:site && npx gh-pages -d site-dist" }, "author": "", "nano-staged": { "*.md": "prettier --write", "*.{ts,tsx,js,vue,less,scss}": "prettier --write", "*.{ts,tsx,js,vue}": "eslint --fix" }, "peerDependencies": { "react": "^18.0.25", "vue": "^3.0.0" }, "devDependencies": { "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", "vant-react-cli": "workspace:*", "vue": "^3.0.0", "sass": "^1.49.7" }, "prettier": { "singleQuote": true }, "browserslist": ["Chrome >= 51", "iOS >= 10"] }Beta Was this translation helpful? Give feedback.
All reactions