pandora 组件库
yarn
Benefited from
vite-plugin-pages
, thesrc/pages/index.vue
is the entry page for development. You can visit/[component-name]/demo
to check component, likehttp://localhost:3000/#/button/demo
.
yarn dev
yarn build
yarn test
入口文件是 rollup 的
input
选项。
yarn gen-entry
您必须为此命令指定组件名称。
yarn gen [component\'s name]
npx esno ./scripts/gen-dts.ts
This command will add git tag、generate changelog. You can test your lib with argument
--dry
yarn release [--dry]
❗ Noted: you should run
yarn build:lib
before run this command. Because the docs need the build bundle.
yarn docs:dev
yarn docs:build
<script setup>
is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use Volar instead of Vetur (and disable Vetur).