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

@aligov/gff-cli

v2.1.10

Published

gff cli工具

Downloads

76

Readme

GFF cli 工具

初始化

$ npm init gff

build

主要用来发布 SDK 工程到 tnpm。

$ gff build
或
$ npm init gff --cliCmd=build

运行后提示选择发布类型,支持:日常(daily)、测试(test)、预发(pre)和生产(prod)。

需要在 [location/]CB${YYYY.MM.DD}/feat-or-hotfix-branch 形式的分支下运行 gff build

分支中的日期也可以是 YYYY.M.D (即不补 0 的形式)(${} 表示内部内容做替换,这三个字符实际上不需要)

发布类型tag 信息的获取优先级如下:

  • 命令中指定参数,如 gff build --env=daily
  • 从环境变量中获取,如 tag=daily gff build
  • 运行时选择

非生产发布

非生产发布时按照以下规则来合并到指定分支,然后构建,发布

  • daily -> release
  • test -> test
  • pre -> prepublish
  • {other} -> {other}

发布的 npm 包 version 格式是 YYYY.MM.DD-MMDDHHmmss,npm 对应的 tag 是指定的发布类型,即 [location-]daily 等。

生产发布

生产发布时合并到 [location/]CB${YYYY.MM.DD}/master 中,并检查是否所有该日期下的分支都已合并。

发布的 npm 包 version 格式是 YYYY.MM.DD[-location],npm 对应的 tag 是 [location-]latest,git tag 是:vYYYY.MM.DDlocation/YYYY.MM.DD

一天内发布了多个版本

非正式发布,一天内可以发布多个版本,npm version 会自动更新。

正式发布,默认 npm version 是当天日期,如 2021.1.26。多次正式发布,会以 2021.1.26-patch12021.1.26-patch22021.1.26-beijing-patch1 这样的形式来递增版本号。