@eui/tools

中文文档
6.21.135发布于 2026/04/10EUPL-1.1CommonJS近 30 天下载 9257

eUI common tools and scripts

原始使用文档
文档目录12 节
  1. Packages
  2. Build package
  3. Build the dependencies of package
  4. Test package
  5. Publish package
  6. Clean package
  7. Build all packages
  8. Clean all packages
  9. Publish all packages
  10. App Container
  11. Generate translation
  12. Extract Versions of dependencies

@eui/tools

Packages

Build package

eui-scripts build-package <package-name>

# Build a package but **first** its dependencies
eui-scripts build-package <package-name> --deps

# Build a package and send report to Slack
eui-scripts build-package <package-name> --slackReport

# Customize Slack end-point and channel
eui-scripts build-package <package-name> --slackEndPoint /my-new-end-point --slackChannel #my-channel

Build the dependencies of package

If you have several packages, if you want to test 1 package you need to have its dependencies built. This is what this command is for (so run it before testing the package).

eui-scripts build-deps <package-name>

Test package

eui-scripts test-package <package-name>

# or with watch
eui-scripts test-package <package-name> --watch

Publish package

eui-scripts publish <package-name>

# to a specific registry
eui-scripts publish <package-name> --registry=http://my-new-registry.com

# to an alias declared in .euirc.json
eui-scripts publish <package-name> --<registry-alias>

# with Slack Repport
eui-scripts publish <package-name> --slackReport

# Custom Slack end-point & channel
eui-scripts publish <package-name> --slackEndPoint /my-new-end-point --slackChannel #my-channel

Clean package

eui-scripts clean-package <package-name>

Build all packages

eui-scripts build-all

Clean all packages

eui-scripts clean-all

Publish all packages

eui-scripts publish-all

# to a specific registry
eui-scripts publish-all --registry=http://my-new-registry

# to an alias declared in .euirc.json
eui-scripts publish-all --<registry-alias>

App Container

Generate translation

Load the translations located in the packages "/assets/i18n/" folder and generate 1 compiled file with all of the translations.

# You need to provide **scopes**
eui-scripts generate-translations --scopes=opsys,opsys-ui,cc

# Or you can pass packages directly
eui-scripts generate-translations --packages=@opsys-ui/something,@cc/something-else

# Languages (default: ["en", "fr"])
# You can specify the languages
eui-scripts generate-translations --scopes=opsys --langs=en,fr,es,de

# The "root" folder where 'node_modules" is relative to, is by default the process.cwd()
# You can override it passing a --target argument
eui-scripts generate-translations --scopes=opsys --target=src/main/angular

# The destination where the generate files will be saved is "src/assets/i18n-compiled"
# relative to the root folder. You can change it providing a --folder argument
# Be careful that this folder will be removed on each generation so make sure it does not contain
# any other files.
eui-scripts generate-translations --scopes=opsys --folder=src/assets/here-better

Extract Versions of dependencies

Read the packages versions in the node_modules folder for the specified scopes.

# IMPORTANT:
# This script will replace this line:
# "export const VERSIONS = {}"
# in a "src/config/index.ts" file relative to the root.
# You then need to have this file in your project with the specified line of code.

eui-scripts extract-deps-versions --scopes=opsys,opsys-ui,eui

# The "root" folder where the "index.ts" file is relative to, is by default the process.cwd()
# You can override it passing a --target argument
eui-scripts extract-deps-versions --scopes=opsys,eui --target=src/main/angular

版本与发布记录

@eui/tools 共发布 1,020 个版本,首次发布于 2019/09/11;过去 12 个月发布了 4 个版本。

版本发布日期距今
6.21.135latest2026/04/107 个月前
6.21.1342026/03/098 个月前
6.21.1312026/03/068 个月前
6.21.1292026/01/299 个月前
6.21.1282025/09/291.1 年前
6.21.1272025/09/261.1 年前

其他发布通道:next → 5.0.0-rc.22,prev → 5.3.92。

关于 @eui/tools 的常见问题

@eui/tools 是什么?

eUI common tools and scripts

如何安装 @eui/tools?

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

@eui/tools 支持 TypeScript 吗?

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

@eui/tools 支持 ESM 还是 CommonJS?

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

@eui/tools 可以商用吗?

@eui/tools 使用 EUPL-1.1 许可。声明的许可为 EUPL-1.1,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@eui/tools 的下载量有多少?

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

@eui/tools 还在维护吗?

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