npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cloud-ui.vusion

v0.18.19

Published

Vusion Cloud UI

Downloads

5,830

Readme

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