河泽冰 下一些常用的组件、工具函数、常量等,基于 dumi 构建,并引入 vite 解决组件库庞大后在开发阶段的调试热更新缓慢的问题。
# install dependencies
$ yarn install
# develop library by vite
$ yarn dev
# develop library by docs demo
$ yarn start
# build library source code
$ yarn run build
# build library source code in watch mode
$ yarn run build:watch
# build docs
$ yarn run docs:build
# Locally preview the production build.
$ yarn run docs:preview
# check your project for potential problems
$ yarn run doctor
1.切换npm源为官方:
yrm use npm
或
npm config set registry https://registry.npmjs.org
2.登录
npm login
# Username: ihezebin
# Email: 86744316@qq.com
3.发布
npm publish --access public
4.发布结束后切回淘宝源
yrm use taobao
或
npm config set registry https://registry.npmmirror.com/
yarn add @hezebin/doraemon
import { Test } from '@hezebin/doraemon';
<Test></Test>
MIT