@ckeditor/ckeditor5-dev-env
Tasks used during development of CKEditor 5.
Last updated 21 days ago by ckeditor .
GPL-2.0-or-later · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ckeditor/ckeditor5-dev-env 
SYNC missed versions from official npm registry.

CKEditor 5 development environment tasks

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.

Current Tags

  • 17.0.0                                ...           latest (21 days ago)

80 Versions

  • 17.0.0                                ...           21 days ago
  • 16.0.0                                ...           3 months ago
  • 15.0.5                                ...           3 months ago
  • 15.0.4                                ...           3 months ago
  • 15.0.3                                ...           4 months ago
  • 15.0.2                                ...           4 months ago
  • 15.0.1                                ...           4 months ago
  • 15.0.0                                ...           4 months ago
  • 14.1.2                                ...           4 months ago
  • 14.1.1                                ...           7 months ago
  • 14.1.0                                ...           7 months ago
  • 14.0.1                                ...           8 months ago
  • 14.0.0                                ...           9 months ago
  • 13.0.3                                ...           9 months ago
  • 13.0.2                                ...           a year ago
  • 13.0.1                                ...           a year ago
  • 13.0.0                                ...           a year ago
  • 12.0.2                                ...           a year ago
  • 12.0.1                                ...           a year ago
  • 12.0.0                                ...           a year ago
  • 11.1.1                                ...           a year ago
  • 11.1.0                                ...           a year ago
  • 11.0.1                                ...           a year ago
  • 11.0.0                                ...           a year ago
  • 10.0.0                                ...           a year ago
  • 9.0.3                                ...           a year ago
  • 9.0.2                                ...           a year ago
  • 9.0.1                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 8.0.9                                ...           2 years ago
  • 8.0.8                                ...           2 years ago
  • 8.0.7                                ...           2 years ago
  • 8.0.6                                ...           2 years ago
  • 8.0.5                                ...           2 years ago
  • 8.0.4                                ...           2 years ago
  • 8.0.3                                ...           2 years ago
  • 8.0.2                                ...           2 years ago
  • 8.0.1                                ...           2 years ago
  • 8.0.0                                ...           2 years ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.1.13                                ...           2 years ago
  • 5.1.12                                ...           2 years ago
  • 5.1.11                                ...           2 years ago
  • 5.1.10                                ...           2 years ago
  • 5.1.9                                ...           2 years ago
  • 5.1.8                                ...           2 years ago
  • 5.1.7                                ...           2 years ago
  • 5.1.6                                ...           2 years ago
  • 5.1.5                                ...           2 years ago
  • 5.1.4                                ...           2 years ago
  • 5.1.3                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.0                                ...           3 years ago
  • 4.4.3                                ...           3 years ago
  • 4.4.2                                ...           3 years ago
  • 4.4.1                                ...           3 years ago
  • 4.4.0                                ...           3 years ago
  • 4.3.0                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 81
This Month 84
Last Day 81
Last Week 1
Last Month 159
Dependencies (18)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |