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

enoui

v0.0.1

Published

<div align='center' ><h2>组件库模版</h2></div>

Downloads

48

Readme

文档

https://xs-com-lib.netlify.app

特性

  • 🚀 最新技术栈:使用 Vue3/Rollup/Gulp 等前端前沿技术开发.
  • 📦 开箱即用:内置打包可按需引入,支持TypeScript,让所有注意力都能放在文档编写和组件开发上.
  • 🔗 支持CDN引入:支持打包输出小巧的CDN模块,可同时支持UnPkg、JsDelivr CDN引入方式.
  • ⚡️ VitePress: Vue官方文档主题:VitePress,免去写样式的烦恼,自带夜间模式,可自定义主题.
  • 💻 一键生成模版命令: 告别机器式手动创建开发模版的烦恼,一条命令即可简单快速生成开发模版.
  • 🚧 规范检查:内置Eslint、Prettier、CommitLint工具更好统一你的代码风格,提交检查规范.

准备

  • NodeGit -项目开发环境
  • Vite - 熟悉 Vite 特性
  • Vue3 - 熟悉 Vue 基础语法
  • Es6+ - 熟悉 Es6 基本语法
  • VitePress - 熟悉 VitePress 基本使用

安装使用

  • 获取项目代码(https or ssh)
git clone https://github.com/jsxiaosi/xs-components-lib.git

git clone [email protected]:jsxiaosi/xs-components-lib.git

或者通过xs-cli快速创建

npx @jsxiaosi/xs-cli create [project-name]
  • 安装依赖
pnpm install

Developer

  • 运行内置模板调试组件
npm run dev
  • 运行 VitePress 文档
npm run docs:dev
  • 创建组件模板
npm run ct '组件名称'

Production

  • 打包组件库
npm run build
  • 打包 VitePress 文档
npm run docs:build

Git 提交规范

  • 参考 vue 规范

    • feat 新增功能
    • fix 修复缺陷
    • docs 文档变更
    • style 代码格式
    • refactor 代码重构
    • perf 性能优化
    • test 添加疏漏测试或已有测试改动
    • build 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)
    • ci 修改 CI 配置、脚本
    • revert 回滚 commit
    • chore 对构建过程或辅助工具和库的更改 (不影响源文件)
    • wip 正在开发中
    • types 类型定义文件修改
  • 或使用指令提交

npm run cz

规范相关

目录

.
├── LICENSE
├── README.md
├── build
├── commitlint.config.js
├── docs                                # vitepress文档目录
├── effect                              # 调试模板
├── lib
├── node_modules
├── package-lock.json
├── package.json
├── packages                            # 公共组件目录
│   ├── components                      # 组件存放目录
│   ├── hooks                           # hooks存放目录
│   ├── theme-default                   # 组件样式存放目录
│   ├── utils                           # 公共方法存放目录
├── postcss.config.js
├── prettier.config.js
├── script
├── stylelint.config.js
├── tsconfig.json
└── typings

感谢以下优秀的项目提供帮助

维护者

@jsxiaosi

License

MIT © 2022