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 🙏

© 2026 – Pkg Stats / Ryan Hefner

at-bff-tools

v0.5.0

Published

凹凸租车前端node服务工具箱

Downloads

3

Readme

auto前端工具箱

1. 安装

$ yarn global add ssh://[email protected]:autoh5/atbfftools.git
$ at-bff-tools --help
Usage: at-bff-tools [options] [command]

Options:
  -V, --version       output the version number
  -h, --help          output usage information

Commands:
  init|i [options]    Geneate the targe resources
  deploy|d [options]  Deploy to test env

2. 使用

命令

init

$ at-bff-tools init --help
Usage: init|i [options]

Geneate the targe resources

Options:
  -t, --type <init type>  what type u wanna init (default: ["ci"])
  -h, --help              output usage information

使用参数 -t 指明所要初始化的资源类型 包括:

  • compose => docker compose生成外部依赖(暂时只包含mongo redis)
  • ci => 生成node服务的.gitlab-ci.yml的模版
  • ci:custom => 自定义生成.gitlab-ci.yml
  • framework:egg => 生成一个初始化的egg应用(代理了egg-init)
  • server => 生成完整server项目(包含常用插件安装及eslint, 不包含ci/cd和docker compose)
  • jenkins => 为当前应用生成一个jenkins项目(无法手动发送, 需要配合ci模版进行使用)
  • lint:js => 为项目生成JavaScript规则的lint
  • lint:ts => 为项目生成Typescript规则的lint

deploy

$ at-bff-tools deploy --help
Usage: deploy|d [options]

Deploy to test env

Options:
  -t, --type <build type>  what type u wanna deploy (default: ["normal"])
  -p, --port <build port>  which port u wanna deploy
  -h, --help               output usage information

参数 -t 表明所发布模版类型,暂时只支持默认模版 -p 表示服务运行的端口

deploy命令同样依赖gitlab ci, 需使用应再 .git-ci.yml中加入, 推荐使用init命令生成的ci模版进行无缝连接

before_script:
  - yarn global add ssh://[email protected]:autoh5/atbfftools.git

deploy_test1:
  varibles:
    TEST_BUILD_ENV: test1
  script:
    - at-bff-tools deploy -p 12345