nopvue-ui

vue ui components

Usage no npm install needed!

<script type="module">
  import nopvueUi from 'https://cdn.skypack.dev/nopvue-ui';
</script>

README

准备

进入项目,安装依赖,执行:

yarn

效果展示demo 和 本地调试:

yarn dev

项目中使用:

yarn add nopvue-ui

引用方式类似iview

import 'nopvue-ui/dist/styles/nopvue.css';

import NopVue from 'nopvue-ui';

Vue.use(NopVue);

开发 & 更新

发布前打包:

yarn dist

实际运行了: yarn dist:dev (构建非压缩的库版本) && yarn dist:prod (构建压缩的库版本) && yarn dist:style (构建样式代码)

发布到npm:

  1. 打包最新版本
  2. 修改 package.json 中 version
  3. npm publish

npm 发布和 git 仓库更新无关,发布之后再 push 到 git 仓库也可以