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

billd-cli

v0.0.14

Published

A cli for quickly create project

Downloads

25

Readme

简介

这是一个快速创建项目的脚手架,核心只做了一件事情:根据你选择的选项,拉取对应的代码到本地。

以下是目前支持的模板代码仓库:

| 模板仓库 | 支持 | | -------------------------------------------------------------------------------------------- | ---- | | webpack5 + ts + vue3 | ✅ | | webpack5 + ts + react17 | ✅ | | webpack5 + ts + noframe | ✅ | | vite2 + ts + vue3 | ✅ | | vite2+react17 | ❌ | | nuxt3+vue3 | ❌ | | next12+react18 | ❌ |

安装

npm i billd-cli -g

使用

version

查看版本号

billd -v
# 或者
billd --version

create

创建项目

billd create projectname

如果当前目录已存在 projectname,可以手动指定覆盖或者合并(如果不指定的话,billd-cli 也会自动判断是否已存在,会提示用户选择合并或者覆盖)

# 合并
billd create projectname -m
# 或者
billd create projectname --merge
# 覆盖
billd create projectname -f
# 或者
billd create projectname --force

目前集成

前端框架(可选):

| 前端框架 | 支持 | | -------- | ---- | | vue3 | ✅ | | react17 | ✅ | | noframe | ✅ |

构建工具(可选):

| 构建工具 | 支持 | | -------- | ---- | | webpack5 | ✅ | | vite2 | ✅ |

开发语言(可选):

| 开发语言 | 支持 | | ---------- | ---- | | javascript | ❌ | | typescript | ✅ |

css 预处理器(可选):

| css 预处理器 | 支持 | | ------------ | ---- | | sass/scss | ✅ | | less | ❌ | | stylus | ❌ |

代码规范(内置):

| 代码规范 | 支持 | | -------- | ---- | | eslint | ✅ | | prettier | ✅ |

工程化配置(内置):

| 工程化配置 | 支持 | | ---------------- | ---- | | husky | ✅ | | commitizen | ✅ | | commitlint | ✅ | | lint-staged | ✅ | | standard-version | ✅ |

如何发版

0.确保 git 工作区干净

即确保本地的修改已全部提交(git status 的时候会显示:nothing to commit, working tree clean ),否则会导致执行 release:local 脚本失败

1.执行本地发版脚本

npm run release:local

该脚本内部会做以下事情:

  1. 根据用户选择的版本,更新 package.json 的 version
  2. 对比当前版本与上个版本的差异,生成 changelog
  3. 提交暂存区到本地仓库:git commit -m 'chore(release): v 当前版本'
  4. 生成当前版本 tag:git tag v 当前版本

2.执行线上发版脚本

注意:如果你使用 yarn run release:online,请确保执行前 yarn 的镜像是 npm 官方镜像:https://registry.npmjs.org/

npm run release:online

该脚本内部会做以下事情:

  1. 提交当前版本:git push
  2. 提交当前版本 tag:git push origin v 当前版本
  3. 发布 npm:npm publish

源码

https://github.com/galaxy-s10/billd-cli