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

vane-cli

v1.9.3

Published

<!-- * @Author: Vane * @Date: 2021-08-19 19:08:17 * @LastEditTime: 2021-09-16 14:04:18 * @LastEditors: Vane * @Description: * @FilePath: \tp-cli\README.md -->

Downloads

74

Readme

tp-cli(已更名为 vane-cli)

介绍

前端通用脚手架, 致力于提升前端研发效率和规范的工程化解决方案

随着业务项目越来越多,单纯的官方 cli 已经不足以满足定制的需要,我们需要一个囊括了已有项目公共组件、开箱即用的工程化项目模板,因此有了这个脚手架

通过该脚手架,你将拥有一支强大的基础项目模板军队,伴你在业务的战场中冲锋陷阵。

安装使用

  1. 一键安装
npx vane-cli create
  1. 全局安装
npm install -g vane-cli
vane-cli create

查看版本

vane --version
1.0.0

发布

# 设置镜像源
## 淘宝镜像
## npm config set registry https://registry.npm.taobao.org/
# 目前发布在npm官方仓库
npm config set registry https://registry.npmjs.org

npm login

npm run pub

此脚本采取 standard-version 版本自增方式,发布之后及时 git push 本地代码。

调试

此脚本已支持本地调试.

项目流程

✨✨✨我是流程图

项目结构



├─ CHANGELOG.md —————————————————— 提交日志
├─ README.md ————————————————————— 项目介绍
├─ bin
│    └─ cli.js ——————————————————— 命令入口
├─ commitlint.config.js —————————— git提交规范
├─ global.d.ts ——————————————————— 类型声明
├─ package.json
├─ publish.sh ———————————————————— 发布脚本
├─ src
│    ├─ assets ——————————————————— 静态资源
│    │    └─ config.json ————————— 脚手架交互字典,后续迁至服务器
│    ├─ commands
│    │    ├─ create.ts ——————————— 创建项目模板
│    │    └─ index.ts ———————————— 创建入口
│    ├─ config
│    │    └─ constants.ts ———————— 全局配置
│    ├─ index.ts  ———————————————— 脚本入口
│    └─ utils
│           ├─ common.ts ————————— 公共函数
│           ├─ promps.ts ————————— cmd交互
│           ├─ rc.ts ————————————— 本地存储
│           └─ upgrade.ts ———————— 版本升级
├─ tsconfig.json ————————————————— ts
└─ yarn.lock

代码质量

ESLint + prettier 配合 husky 和 lint-staged,在代码提交时自动校验和修复代码格式