Coder Social home page Coder Social logo

cloud-ui's Introduction

Vusion Cloud UI

NPM Version Dependencies NPM Download

Install

npm install --save cloud-ui.vusion

QuickStart

import Vue from 'vue';
import * as CloudUI from 'cloud-ui.vusion/dist';
import 'cloud-ui.vusion/dist/index.css';
// 如需引入其他主题,将上面的路径替换为如下不同的主题样式
// import 'cloud-ui.vusion/dist/theme-dark.css';

Vue.use(CloudUI); // 全局安装组件库中的组件、指令等

Development

npm install

安装

npm run dev

开发

npm run build:docs

构建文档

需要先npm run buildnpm run build:theme

npm run build:doc-entry

构建用于物料体系的文档入口。

npm run deploy:dev 发布联调环境 NOS

dist-theme/screenshotsdrawings 下的文档发布到 NOS

npm run deploy:test 发布测试环境 NOS

dist-theme/screenshotsdrawings 下的文档发布到 NOS

npm publish 发布正式 npm 包(线上环境)

脚本会自动执行 deploy:online 等将 dist-theme/screenshotsdrawings 下的文档发布到 NOS

npm run deploy:doc-entry

dist-doc-entry/下的文档入口发布到 NOS

upload single screenshot

yarn run build:docs
node bin/screenshot u-button
npm run deploy:screenshots u-button

设计图片

存储在 drawings 里面

测试

本工程已经完成基于 Jest + Vue Test Utils 配置

npm test

在提 PR 和发布之前都会自动运行测试,保证可靠性。

快照测试

基于组件 docs/*.md 内的代码自动生成 Demo,对渲染后的 DOM 结构进行对比完成快照测试。

如果快照测试失败,请检查 DOM 结构变更是否符合预期:

  • 如果不符合预期,请检查并修改组件源码,否则本次变更可能引入 bug。
  • 如何符合预期,例如对文案或者组件结构进行了修改,可以运行以下命令更新快照:
npm test -- -u ${组件名称(例如u-button)}

更新后的快照文件请提交到 Git。

单元测试

在组件的 __tests__ 目录中新建文件编写。

Publish

vusion publish

usage.json 在低代码平台上登记。

Changelog

See Releases

贡献指南

修改代码请阅读我们的 贡献指南

License

MIT

Test environment

deploy:inlcap

cloud-ui's People

Contributors

rainfore avatar haoxutong avatar ncqwer avatar wangzanning avatar daysai avatar lifuquan avatar heroor avatar violarong avatar imyzf avatar qingniao99 avatar zhangsanshi avatar yufji avatar wybieshang avatar zxydaisy avatar shaoyuee avatar zx-zhyl avatar lingqiao123 avatar myronliu347 avatar can2nya avatar lonyanzzc avatar luoxlgh avatar yangxiuxiu1115 avatar lewis617 avatar alfredmou avatar zhharies avatar codespirate avatar limoon7 avatar zou-xinhua avatar xuguanjie0706 avatar wt911122 avatar

Stargazers

ZicoKuo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.