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

dkui_hxf

v1.0.1

Published

A Vue.js project

Downloads

1

Readme

dkui

读客出品的基于Vue2.0的组件库

gitee

撰写人

  • 黄雪峰
  • 读客新媒体部-黄雪峰-欠点高级工程师

我们不是造轮子,技术也没达到,是在前人的技术基础上,实现我们自己的东西

参考资料

  • VVUI
  • Element-UI

项目目录说明

  • examples
    • 原 src 目录,改成 examples 用作示例展示
  • packages
    • 新增 packages 用于编写存放组件 这里需要把webpack配置的src目录改成packages目录

markdown解析

vue下可以去写 markdown 文档

npm i vue-markdown-loader -D
npm i  vue-loader vue-template-compiler -D

cheerio

markdown-it

markdown-it:渲染 markdown 基本语法

markdown-it-anchor:为各级标题添加锚点 (我们用到的) npm

markdown-it-container:用于创建自定义的块级容器 (我们用到的) markdown-it-emoji:渲染 emoji markdown-it-table-of-contents:自动生成目录 highlight.js:代码高亮

项目启动命令

# 安装项目依赖
npm install

# 运行项目
npm run dev

# 项目打包构建
npm run build

# 构建项目,并且查看项目构建分析报告
npm run build --report

# 运行 unit 测试
npm run unit

# 运行 e2e 测试
npm run e2e

# 运行所以的测试
npm test

CSS规范

  • 定位属性:position  display  float  left  top  right  bottom   overflow  clear   z-index
  • 自身属性:width  height  padding  border  margin   background
  • 文字样式:font-family   font-size   font-style   font-weight   font-varient   color   
  • 文本属性:text-align   vertical-align   text-wrap   text-transform   text-indent    text-decoration   letter-spacing    word-spacing    white-space   text-overflow
  • css3中新增属性:content   box-shadow   border-radius  transform……

由上到下的顺序编写,目的:减少浏览器reflow(回流),提升浏览器渲染dom的性能