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

xiuu-lib

v1.0.54

Published

易迅通科技前端组件库

Readme

library-YXT-UI

基于vue+webpack+npm搭建个人组件库

XiUU-UI

YXT-UI 是一款基于 Vue.js 2.0 的企业前端 UI 组件库,测试地址

Build Setup

# 安装依赖包
npm install

# 启动项目(serve with hot reload at) localhost:8080
npm run dev | npm run start

# 打包本地dist
npm run build

# 单元测试(unit、e2e)
npm run test

# 单元测试(unit)
npm run unit

# 单元测试(e2e)
npm run e2e

# ESLint全局格式化检查
npm run lint

# stylelint全局格式化检查
npm run stylelint

# git标记tag节点进行发布前准备
npm run tag

# npm包打包发布
npm run publish

项目结构:

    ┏━ build #构建配置
    ┣━ config #环境变量
    ┣━ node_modules
    ┣━ docs ━┳━ assets #静态资源文件
    ┣        ┣━ components  #Markdown项目组件(非对外组件)
    ┣        ┣━ docs #Markdown文档
    ┣        ┣━ pages #Markdown项目入口
    ┣        ┣━ router #Markdown文档路由
    ┣        ┣━ App.vue
    ┃        ┗━ main.js
    ┣━ frameworks 
    ┣━ static 
    ┣━ test
    ┣━ .babelrc
    ┣━ .editorconfig
    ┣━ .eslintignore
    ┣━ .eslintrc.js
    ┣━ .gitignore
    ┣━ .postcssrc.js
    ┣━ index.html
    ┣━ package-lock.json
    ┣━ package.json
    ┗━ README.md

注释的目的:提高代码的可读性,从而提高代码的可维护性

注释的原则:如无必要,勿增注释;如有必要,尽量详尽。


ESLint + stylelint配置自动化修复流程:

1、安装vscode 插件 stylelint;

2、vscode setting.json文件中添加以下配置:

"editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.fixAll.stylelint": true,
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"stylelint.enable": true,
"css.validate": true,
"less.validate": true,
"scss.validate": true,

"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
    "enable": true
},