@brandocms/europacss-cli

中文文档
0.1.0-beta.0发布于 2026/10/16MITTypeScriptCommonJS零依赖近 30 天下载 2384

The native EuropaCSS compiler and migration tools

原始使用文档

EuropaCSS CLI

Prebuilt native EuropaCSS compiler, Config Studio and migration tools. Requires Node 22.12+ or Node 24+ for the npm launcher; the native executable itself needs neither Node nor Rust. Browser comparison additionally needs Chromium with CDP.

pnpm add -D --save-exact @brandocms/[email protected]
pnpm exec europa --version
pnpm exec europa css/app.css --config europa.json5 -o public/app.css
pnpm exec europa migrate css/app.css --from 1.0.0-beta.6 --config europa.json5

Create the output directory before compiling. All normal CLI commands, including migrate-config, compare, studio, --watch and --source-map, are available.

The npm release includes binaries for macOS arm64/x64, Linux arm64/x64 with glibc or musl, and Windows x64. The matching platform package is installed as an exact-version optional dependency. Keep optional dependencies enabled. There are no install scripts, external binary downloads or compiler toolchain requirements. Install dependencies inside the target Docker image; do not copy node_modules from a Mac into Linux. Native archives are unsigned and not notarized.

The Vite adapter depends on this package and resolves its executable directly:

import europa from '@brandocms/vite-plugin-europacss';
export default { plugins: [europa()] };

Other integrations can use getBinaryPath() from @brandocms/europacss-cli to obtain the absolute executable path. The launcher preserves arguments, standard input/output, exit status and interrupt/termination signals.

The existing @brandocms/europacss package is the JavaScript/PostCSS implementation. It does not install this CLI. See the migration guide.

Maintainers: use python3 scripts/package-npm.py --shared from the repository root to pack this package. That step generates the platform dependency map from platforms.json; a direct npm pack packages/cli is not a release artifact.

版本与发布记录

@brandocms/europacss-cli 共发布 2 个版本,首次发布于 2026/10/16;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.1.0-beta.0latest2026/10/1624 天前
0.0.0-stage2026/10/1624 天前

关于 @brandocms/europacss-cli 的常见问题

@brandocms/europacss-cli 是什么?

The native EuropaCSS compiler and migration tools

如何安装 @brandocms/europacss-cli?

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

@brandocms/europacss-cli 支持 TypeScript 吗?

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

@brandocms/europacss-cli 支持 ESM 还是 CommonJS?

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

@brandocms/europacss-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.12.0 || >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@brandocms/europacss-cli 可以商用吗?

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

@brandocms/europacss-cli 的下载量有多少?

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

@brandocms/europacss-cli 还在维护吗?

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