Socket
Socket
Sign inDemoInstall

cloud-ui.vusion

Package Overview
Dependencies
21
Maintainers
13
Versions
559
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cloud-ui.vusion

Vusion Cloud UI


Version published
Weekly downloads
2.7K
increased by83.45%
Maintainers
13
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 22 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc