@enact/dev-utils

中文文档
7.1.0发布于 2026/11/09Apache-2.0CommonJS近 30 天下载 1.3万

A collection of development utilities for Enact apps.

原始使用文档
文档目录3 节
  1. Installation
  2. Features and Utilities
  3. Copyright and License Information

@enact/dev-utils Travis NPM

A collection of development utilities for Enact apps.

Installation

npm install --save-dev @enact/dev-utils

Features and Utilities

Mixins

Plugins

config-helper

Contains a collection of webpack configuration manipulation functions. Able to find a webpack project root as well as manipulate entrypoints, loaders, and plugins.

css-module-ident

An optional getLocalIdent function for Webpack CSS loader's modular classname resolution. This is for development and debugging, harnessing class names based on Node module resolution for a readable and repeatable output.

option-parser

Detects the enact object within the root package.json and autodetects/resolves omitted options.

package-root

Resolves the active package root path and metadata.

Unless otherwise specified, all content, including all source code files and documentation files in this repository are:

Copyright (c) 2016-2025 LG Electronics

Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

版本与发布记录

@enact/dev-utils 共发布 73 个版本,首次发布于 2017/09/29;过去 12 个月发布了 5 个版本。

版本发布日期距今
7.1.0latest2026/11/094 天前
7.0.62026/08/212 个月前
7.0.52026/06/234 个月前
7.0.42026/04/077 个月前
7.0.32026/01/139 个月前
7.0.22025/11/131 年前

其他发布通道:legacy → 1.2.1,patch → 3.1.2,production → 4.1.5,next → 7.0.0-rc.1。

关于 @enact/dev-utils 的常见问题

@enact/dev-utils 是什么?

A collection of development utilities for Enact apps.

如何安装 @enact/dev-utils?

在项目目录运行 npm install @enact/dev-utils,或使用 pnpm add / yarn add / bun add。

@enact/dev-utils 支持 TypeScript 吗?

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

@enact/dev-utils 支持 ESM 还是 CommonJS?

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

@enact/dev-utils 需要什么版本的 Node.js?

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

@enact/dev-utils 可以商用吗?

@enact/dev-utils 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@enact/dev-utils 的下载量有多少?

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

@enact/dev-utils 还在维护吗?

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