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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cmq-plus

v0.0.1

Published

ui for vue3

Readme

适合 vue3 的 UI 组件库

注意

  1. 安装 vue、ts,配置 tsconfig.json
  2. 创建 pnpm-workspace.yaml
  3. 创建项目 packages、play、docs
  4. play 使用 pnpm create vite 创建演示项目
  5. 配置 script 脚本 pnpm run -C play dev
  6. 创建全局类型声明目录 typings
  7. 组件中包含:组件 components、样式 theme-chalk、工具方法 utils、指令 directives、钩子 Hooks 等
  8. 每个 package 都是独立模块,其中的 package.json 修改 name,scripts
  9. 将每个 package 安装在根目录下
pnpm install @cmq-plus/components -w
pnpm install @cmq-plus/theme-chalk -w
pnpm install @cmq-plus/utils -w
  1. 创建符合 BEM 规范的方法和 mixin 样式
  2. 创建整合后的 cmq-plus,导入所有 components;注意 package.json 的"name": "cmq-plus"
  3. 组件打包
    • 整个组件打包(iife,cjs,esm)
    • 按需打包

特点

  • monorepo
  • ts
  • vue3
  • rollup

Usage

全部引入

pnpm add cmq-plus -S

// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import cmqUI from 'cmq-plus';

const app = createApp(App);
app.use(cmqUI).mount('#app');

按需引入

借助插件babel-plugin-import实现按需加载

// App.vue
import { button as CButton } from 'cmq-plus';

<CButton></CButton>;

cdn 引入