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

cango1212

v0.0.1

Published

This is a vue3 project.

Downloads

2

Readme

Rollup + Typescript + Vue3.0 组件库模板

功能介绍

  • rollup 模块化打包
  • typescript
  • esbuild 打包编译
  • jest + @vue/test-utils 组件测试
  • eslint 代码规范检查
  • sass,postcss 预处理

使用 Stylus/Less

默认支持 Sass 预处理,如需使用 Stylus/Less,安装对应的解析器

  • Stylus: yarn add -D stylus
  • Less: yarn add -D less

开发指南

请使用 cango-cli 初始化使用

# 安装cli

npm install -g cango-cli

# 初始化项目

cango init <project-name>

# 1.项目基本配置
# 2.选择基于rollup的vue3.0组件库模板
# 3.等待初始化完成
# 4.修改examples/main.ts中引入文件的路径(将“[name]”替换为打包后的js名称)
cd <project-name>

安装依赖

npm install
# or
yarn

本地开发

npm run dev
# or
yarn dev

单元测试

npm run test
# or
yarn test

生产打包

npm run build
# or
yarn build

目录结构

...
packages -------------- 组件库源码
 - Button ------------- 组件目录
  - index.ts ---------- 组件注册入口
  - src --------------- 组件源码
 - index.ts ----------- 组件库打包入口文件
examples -------------- 开发预览页面源码
 - main.ts ------------ 预览页入口文件
 - App.vue ------------ 预览页入口组件
 - index.html --------- 预览页htlm模板
tests ----------------- 单元测试目录
 - **/*.spec.ts ------- 单元测试文件
types ----------------- ts注解文件目录
.editorconfig --------- 编辑器配置文件
.eslintignore --------- eslint检查忽略目录
.eslintrc ------------- eslint检查配置文件
jest.config.js -------- jest测试配置文件
rollup.config.js ------ rollup配置文件
tsconfig.json --------- ts编译配置文件
components.json ------- 单组件映射表
...