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

calc-link-ui-web

v2.1.14

Published

A Component Library for Vue.js.

Downloads

1

Readme

Link UI

git 配置

# 统一使用LF作为结尾标识符
git config --global core.autocrlf false

使用dart-sass

参考:https://www.yuque.com/shareman/development/xgk1sq

# 移除 node-sass
yarn remove node-sass

# 安装 sass 和 sass-loader
yarn add sass sass-loader -D

# 修改webpack配置
{
  test: /\.(scss|css)$/,
  use: [
    isProd ? MiniCssExtractPlugin.loader : 'style-loader',
    'css-loader',
    {
      loader: 'sass-loader',
      options: {
        // Prefer `dart-sass`
        implementation: require('sass')
      }
    }
  ]
}

Git 提交规范

使用当前较为主流的 AngularJS 的 commit 规范

每次提交,Commit message 都包括三个部分:Header,Body 和 Footer

<type>(<scope>): <subject>
// 空一行
<body>
// 空一行
<footer>

其中,Header 是必需的,Body 和 Footer 可以省略

Header

Header部分只有一行,包括三个字段:type(必需)、scope(可选)和subject(必需)

type

用来标识 commit 的类型,总共有以下 7 个标识:

  • feat:新功能
  • fix:bug 修复
  • docs:文档发生修改
  • style:不改变代码功能的变动(如删除空格、格式化、去掉末尾分号等)
  • refactor:代码重构(不包括 bug 修复、功能新增)
  • pref: 性能优化
  • test:新增或修改测试代码
  • chore:跟项目主要功能无关的构建/工程依赖/工具等代码改动(比如新增一个文档生成工具)
  • revert:撤销上一次的提交
  • ci:新增或修改 CI 配置、脚本

scope

用来标识改动所影响的范围,视项目而定

subject

改动的简短描述,不超过 50 字符长度

Body

本次 commit 的详细描述

Footer

主要用于两种情况:

  • 重大的不兼容改动: 用于给出改动说明及解决方案。
  • 关联 issues: 用于关闭相应 issues

推荐编辑器

这里推荐一个编辑器:

  • VS Code,微软出品的开源编辑器,插件丰富,性能优异

VS Code 相关插件

  • vutur (Vue 语法高亮)
  • eslint (对js进行与法检查和提示)
  • beautify (代码格式化 包括:javascript, json, sass, html)
  • auto close tag (自动闭合HTML/XML标签)
  • gitlens(方便查看git提交信息和版本回退)