@adminjs/bundler

中文文档
3.0.0发布于 2023/04/19SEE LICENSE IN LICENSETypeScriptES Module零依赖近 30 天下载 1.8万

This is a bundler utility tool for AdminJS. Normally, AdminJS builts custom components on server's startup which can slow it down or cause high memory usage.

原始使用文档
文档目录4 节
  1. AdminJS
  2. Usage
  3. License
  4. About rst.software

Bundler for AdminJS

This is a bundler utility tool for AdminJS. Normally, AdminJS builts custom components on server's startup which can slow it down or cause high memory usage.

This tool allows you to pre-bundle AdminJS browser files before deploying or during your CI/CD process.

IMPORTANT: To prevent AdminJS from attempting to generate a new bundle on server startup, you must set ADMIN_JS_SKIP_BUNDLE="true" environment variable! "true" needs to be a string, it cannot be a boolean.

AdminJS

AdminJS is an automatic admin interface which can be plugged into your application. You, as a developer, provide database models (like posts, comments, stores, products or whatever else your application uses), and AdminJS generates UI which allows you (or other trusted users) to manage content.

Check out the example application with mongo and postgres models here: https://demo.adminjs.co

Or visit AdminJS github page.

Usage

Please see "example" directory in this package's repository.

License

AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the LICENSE file.

About rst.software

We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.

  • We are available for hire.
  • If you want to work for us - check out the career page.

版本与发布记录

@adminjs/bundler 共发布 5 个版本,首次发布于 2022/02/11;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.0latest2023/04/193 年前
2.0.02022/07/134 年前
1.2.02022/04/034 年前
1.1.02022/02/224 年前
1.0.02022/02/114 年前

关于 @adminjs/bundler 的常见问题

@adminjs/bundler 是什么?

This is a bundler utility tool for AdminJS. Normally, AdminJS builts custom components on server's startup which can slow it down or cause high memory usage.

如何安装 @adminjs/bundler?

在项目目录运行 npm install @adminjs/bundler,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:adminjs(^7.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@adminjs/bundler 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adminjs/bundler 支持 ESM 还是 CommonJS?

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

@adminjs/bundler 可以商用吗?

@adminjs/bundler 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@adminjs/bundler 的下载量有多少?

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

@adminjs/bundler 还在维护吗?

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