• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ckeditor / ckeditor5-package-generator / 4c42dc7e-c078-4dd0-a5de-abdaf729fc09

09 Sep 2024 11:40AM UTC coverage: 100.0%. Remained the same
4c42dc7e-c078-4dd0-a5de-abdaf729fc09

push

circleci

web-flow
Merge pull request #187 from ckeditor/ci/3756

Other (generator): Replaced Karma with Vitest as the testing framework in the generated package.

Other (tools): Removed support for the `--coverage` (`-c`) and `--source-map` (`-s`) flags.

Other (tools): Removed `test` script from the tools, because unit tests in the generated package are executed now directly by Vitest.

MINOR BREAKING CHANGE (generator): The generated package no longer uses Karma as the test runner. Instead, Vitest is used.

MINOR BREAKING CHANGE (tools): The `test` script is removed, because unit tests in the generated package are executed directly by Vitest. Hence, the previous custom support for the `--coverage` (`-c`) and `--source-map` (`-s`) flags is no longer needed and has been also removed. The `yarn run test` (or `npm run test`) script is still available in the generated package, but it executes Vitest. See [CLI flags](https://vitest.dev/guide/cli.html) supported in Vitest.

120 of 120 branches covered (100.0%)

Branch coverage included in aggregate %.

393 of 393 relevant lines covered (100.0%)

9.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/packages/ckeditor5-package-generator/lib/utils/get-dependencies-versions.js
1
/**
2
 * @license Copyright (c) 2020-2024, CKSource Holding sp. z o.o. All rights reserved.
3
 * For licensing, see LICENSE.md.
4
 */
5

6
'use strict';
7

8
const path = require( 'path' );
8✔
9
const getPackageVersion = require( './get-package-version' );
8✔
10

11
/**
12
 * Returns an object containing version for the packages listed below:
13
 *
14
 *   * ckeditor5
15
 *   * @ckeditor/ckeditor5-inspector (as `ckeditor5Inspector`)
16
 *   * @ckeditor/ckeditor5-dev-build-tools (as `ckeditor5DevBuildTools`)
17
 *   * eslint-config-ckeditor5 (as `eslintConfigCkeditor5`)
18
 *   * stylelint-config-ckeditor5 (as `stylelintConfigCkeditor5`)
19
 *   * @ckeditor/ckeditor5-package-tools (as `packageTools`)
20
 *
21
 * The value for the `packageTools` package depends on the `options.devMode` modifier:
22
 *
23
 *   * `true` - an absolute path to the locally cloned package.
24
 *   * `false` - the latest version published on npm.
25
 *
26
 * @param {Logger} logger
27
 * @param {Boolean} dev
28
 * @returns {Object}
29
 */
30
module.exports = function getDependenciesVersions( logger, dev ) {
8✔
31
        logger.process( 'Collecting the latest CKEditor 5 packages versions...' );
7✔
32

33
        return {
7✔
34
                ckeditor5: getPackageVersion( 'ckeditor5' ),
35
                ckeditor5PremiumFeatures: getPackageVersion( 'ckeditor5-premium-features' ),
36
                ckeditor5Inspector: getPackageVersion( '@ckeditor/ckeditor5-inspector' ),
37
                ckeditor5DevBuildTools: getPackageVersion( '@ckeditor/ckeditor5-dev-build-tools' ),
38
                eslintConfigCkeditor5: getPackageVersion( 'eslint-config-ckeditor5' ),
39
                stylelintConfigCkeditor5: getPackageVersion( 'stylelint-config-ckeditor5' ),
40
                packageTools: dev ?
7✔
41
                        // Windows accepts unix-like paths in `package.json`, so let's unify it to avoid errors with paths.
42
                        'file:' + path.resolve( __dirname, '..', '..', '..', 'ckeditor5-package-tools' ).split( path.sep ).join( path.posix.sep ) :
43
                        '^' + getPackageVersion( '@ckeditor/ckeditor5-package-tools' )
44
        };
45
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc