@ckeditor/ckeditor5-dev-env

中文文档
31.1.13发布于 2022/11/25GPL-2.0-or-laterCommonJS近 30 天下载 1万

Tasks used during development of CKEditor 5.

此软件包已被标记为弃用

This package is no longer maintained. Please, read the migration path: https://github.com/ckeditor/ckeditor5-dev/releases/tag/v32.0.0.

原始使用文档
文档目录9 节
  1. Release tools
  2. Usage
  3. Generating changelog
  4. Creating a release for multiple repositories
  5. Publishing changes
  6. Translation tools
  7. Usage
  8. Changelog
  9. License

CKEditor 5 development environment tasks

npm version Build Status Dependency Status

Tasks used during development of CKEditor 5.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.

Release tools

Usage

npm i --save-dev @ckeditor/ckeditor5-dev-env

Then create a script that run tasks:

// scripts/changelog-self.js: Generate changelog for the current package.
require( '@ckeditor/ckeditor5-dev-env' ).generateChangelogForSinglePackage();
// scripts/changelog-repos.js: Generate changelog for all dependencies (repository using multiple repositories).
require( '@ckeditor/ckeditor5-dev-env' ).generateChangelogForSubRepositories( /* options */ );

// See the `options` argument:
// https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogforsubrepositories.js#L20-L27
// scripts/changelog-packages.js: Generate changelog for all packages (repository contains multiple packages).
require( '@ckeditor/ckeditor5-dev-env' ).generateChangelogForSubPackages( /* options */ );

// See the `options` argument:
// https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogforsubpackages.js#L20-L27
// scripts/release-bump-versions.js: Validates and updates version for all packages (includes the package found in options.cwd)
require( '@ckeditor/ckeditor5-dev-env' ).bumpVersions( /* options */ );

// See the `options` argument:
// https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/ckeditor5-dev-env/lib/release-tools/tasks/bumpversions.js#L20-L27
// scripts/release-packages.js: Publish all changes.
require( '@ckeditor/ckeditor5-dev-env' ).releaseSubRepositories( /* options */ );

// See the `options` argument:
// https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/ckeditor5-dev-env/lib/release-tools/tasks/releasesubrepositories.js#L20-L27

Generating changelog

This tool can generate a changelog file based on commits in the repository. It can also propose what should be the next release version (according to SemVer).

Read more about the git commit message convention implemented by this tool.

Creating a release for multiple repositories

Note: Before running the bumping versions task you need to generate the changelog for changes in the version to be released.

The process implemented by the tool:

  1. Read a new release version from the changelog (the last header),
  2. Filter out packages which won't be released (no changes or dependencies has not changed),
  3. Update new versions of packages in package.json for all released packages,
  4. Commit these changes as Release: vX.Y.Z.,
  5. Create a tag vX.Y.Z.

Publishing changes

Note: Before publishing changes you need to bump versions in all dependencies.

The process implemented by the tool:

  1. Compares versions released on NPM and GitHub. Based on that, the tool know what should be published. You can call the same script multiple times and nothing wrong happens.
  2. If choose publish on NPM: the tool publish changes on NPM.
  3. If choose publish on GitHub: the tool creates a GitHub release. Notes for the release are taken from the changelog.
  4. If nothing was selected: the tool does nothing. No publish, no push, no creating releases.

Translation tools

Available tasks:

  • collect - Collects translation strings ( from t() calls ) and stores them in ckeditor5/build/.transifex directory.
  • upload - Uploads translations to the Transifex from collected files.
  • download - Downloads translations from the Transifex for each package and language.

Usage

npm i --save-dev @ckeditor/ckeditor5-dev-env

Then use ckeditor5-dev-env-translations command:

# directly from command line:
node ./node_modules/bin/ckeditor5-dev-env-translations collect

# using npx:
npx ckeditor5-dev-env-translations collect

Or add to package.json scripts:

{
  "scripts": {
    "translations:collect": "ckeditor5-dev-env-translations collect",
    "translations:download": "ckeditor5-dev-env-translations download",
    "translations:upload": "ckeditor5-dev-env-translations upload"
  }
}

Changelog

See the CHANGELOG.md file.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file.

版本与发布记录

@ckeditor/ckeditor5-dev-env 共发布 181 个版本,首次发布于 2016/08/23;过去 12 个月发布了 0 个版本。

版本发布日期距今
31.1.13latest2022/11/253 年前
31.1.122022/11/243 年前
31.1.112022/11/223 年前
31.1.102022/11/223 年前
31.1.92022/11/173 年前
31.1.82022/11/044 年前

关于 @ckeditor/ckeditor5-dev-env 的常见问题

@ckeditor/ckeditor5-dev-env 是什么?

Tasks used during development of CKEditor 5.注意:该包已被作者标记为弃用——This package is no longer maintained. Please, read the migration path: https://github.com/ckeditor/ckeditor5-dev/releases/tag/v32.0.0.

如何安装 @ckeditor/ckeditor5-dev-env?

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

@ckeditor/ckeditor5-dev-env 支持 TypeScript 吗?

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

@ckeditor/ckeditor5-dev-env 支持 ESM 还是 CommonJS?

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

@ckeditor/ckeditor5-dev-env 需要什么版本的 Node.js?

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

@ckeditor/ckeditor5-dev-env 可以商用吗?

@ckeditor/ckeditor5-dev-env 使用 GPL-2.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以兼容的 GPL 许可开源。仅在内部使用、不对外分发时不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@ckeditor/ckeditor5-dev-env 的下载量有多少?

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

@ckeditor/ckeditor5-dev-env 还在维护吗?

最新版本 31.1.13 发布于 2022/11/25(3 年前);至今共发布 181 个版本,其中过去 12 个月发布了 0 个;首次发布于 2016/08/23。作者已将其标记为弃用,新项目建议寻找替代方案。