@jack-barr3tt/create-bouncer

中文文档
0.5.1发布于 2026/11/01MITES Module零依赖

Write Bouncer site files: CI pipelines, build scripts, the compose file that runs the image, and the Hello sample.

原始使用文档

@jack-barr3tt/create-bouncer

Writes the files for a Bouncer site: CI pipelines, build and deploy scripts, deploy/docker-compose.yml, and the Hello sample.

npx @jack-barr3tt/create-bouncer

Run it in the git repository that will hold your apps. It asks which CI to use (GitHub Actions, Woodpecker, or Forgejo), the public URL, the absolute path of that repository on the server, and the host port. The path is saved as SITE_PATH. The port is saved as PORT and defaults to 8080.

Pass the same answers as flags:

npx @jack-barr3tt/create-bouncer . \
  --ci github \
  --public-url https://apps.example.com \
  --site-path /var/www/apps \
  --port 8080

Existing files are left in place. Clone the repository on the server at the path you entered, then from deploy/:

cp .env.example .env
# set AUTH_BOOTSTRAP_USERNAME and AUTH_BOOTSTRAP_PASSWORD
docker compose up -d

How to run the server, add apps, and publish from git is in the Bouncer README.

License

MIT

版本与发布记录

@jack-barr3tt/create-bouncer 共发布 12 个版本,首次发布于 2026/10/04;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.5.1latest2026/11/012 天前
0.5.02026/11/012 天前
0.4.12026/10/1618 天前
0.4.02026/10/1222 天前
0.3.52026/10/1222 天前
0.3.42026/10/1123 天前

关于 @jack-barr3tt/create-bouncer 的常见问题

@jack-barr3tt/create-bouncer 是什么?

编写Bouncer站点文件:CI管道、构建脚本、运行映像的组合文件和Hello示例。

如何安装 @jack-barr3tt/create-bouncer?

在项目目录运行 npm install @jack-barr3tt/create-bouncer,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 create-bouncer,可以用 npx create-bouncer 直接运行。

@jack-barr3tt/create-bouncer 支持 TypeScript 吗?

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

@jack-barr3tt/create-bouncer 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@jack-barr3tt/create-bouncer 可以商用吗?

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

@jack-barr3tt/create-bouncer 还在维护吗?

最新版本 0.5.1 发布于 2026/11/01(2 天前);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/10/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。