@cypress/bumpercar

中文文档
2.0.12发布于 2019/10/15MITCommonJS近 30 天下载 2285

Easily update settings and trigger builds across projects and CI Providers.

此软件包已被标记为弃用

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

原始使用文档
文档目录3 节
  1. API
  2. Testing
  3. Debugging

cypress-bumpercar

Make it easy to bump versions and re-run CI builds across many projects and CI providers.

CircleCI semantic-release renovate-app badge

bumpercar = require("@cypress/bumpercar")

# configure a new Bumpercar
car = bumpercar.create({
  providers: {
    travis: {
      # find/create one here: https://github.com/settings/tokens
      githubToken: "github-token-for-user-with-repo-privileges"
    }
    circle: {
      # find/create one here: https://circleci.com/account/api
      circleToken: "circle-token-for-user-with-project-privileges"
    }
  }
})

# bump your ENV vars with ease
car.updateProjectEnv("cypress-io/cypress-download", "circle", {
  VAR_1: "lo"
  VAR_2: "and"
  VAR_3: "behold"
})

.then ->
  # kick off a new build/run with your new vars
  car.runProject("cypress-io/cypress-download", "circle")

API

This module supports

  • Travis
    • setting environment variables
    • fetch last build by id
    • restart build by id
  • CircleCI
    • setting environment variables
    • starting a build
  • AppVeyor
    • setting environment variables
    • starting a build
  • Buildkite
    • setting environment variables
    • starting a build

Testing

  • npm test runs the unit tests once
  • npm run watch keeps watching for file changes and reruns the tests

Debugging

Run commands with DEBUG=bumper environment variable. To see debug messages from the unit tests, run with DEBUG=test environment variable.

版本与发布记录

@cypress/bumpercar 共发布 23 个版本,首次发布于 2017/06/20;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.12latest2019/10/157 年前
2.0.112019/10/027 年前
2.0.102019/10/027 年前
2.0.92019/05/317 年前
2.0.82019/05/257 年前
2.0.72019/04/037 年前

关于 @cypress/bumpercar 的常见问题

@cypress/bumpercar 是什么?

Easily update settings and trigger builds across projects and CI Providers.注意:该包已被作者标记为弃用——Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

如何安装 @cypress/bumpercar?

在项目目录运行 npm install @cypress/bumpercar,或使用 pnpm add / yarn add / bun add。

@cypress/bumpercar 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cypress__bumpercar 是否存在。

@cypress/bumpercar 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cypress/bumpercar 可以商用吗?

@cypress/bumpercar 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cypress/bumpercar 的下载量有多少?

根据 npm 官方下载统计,@cypress/bumpercar 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,285 次,日均约 76 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cypress/bumpercar 还在维护吗?

最新版本 2.0.12 发布于 2019/10/15(7 年前);至今共发布 23 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/06/20。作者已将其标记为弃用,新项目建议寻找替代方案。