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

ckeditor / ckeditor5-package-generator / 1155

pending completion
1155

push

travis-ci-com

web-flow
Merge pull request #148 from ckeditor/i/136

Other (tools): Update `terser-webpack-plugin` to enable optional chaining syntax. Closes #136.

117 of 117 branches covered (100.0%)

Branch coverage included in aggregate %.

420 of 420 relevant lines covered (100.0%)

8.92 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-2023, 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
 *   * eslint-config-ckeditor5 (as `eslintConfigCkeditor5`)
17
 *   * stylelint-config-ckeditor5 (as `stylelintConfigCkeditor5`)
18
 *   * @ckeditor/ckeditor5-package-tools (as `packageTools`)
19
 *
20
 * The value for the `packageTools` package depends on the `options.devMode` modifier:
21
 *
22
 *   * `true` - an absolute path to the locally cloned package.
23
 *   * `false` - the latest version published on npm.
24
 *
25
 * @param {Logger} logger
26
 * @param {Boolean} dev
27
 * @returns {Object}
28
 */
29
module.exports = function getDependenciesVersions( logger, dev ) {
8✔
30
        logger.process( 'Collecting the latest CKEditor 5 packages versions...' );
7✔
31

32
        return {
7✔
33
                ckeditor5: getPackageVersion( 'ckeditor5' ),
34
                ckeditor5Inspector: getPackageVersion( '@ckeditor/ckeditor5-inspector' ),
35
                eslintConfigCkeditor5: getPackageVersion( 'eslint-config-ckeditor5' ),
36
                stylelintConfigCkeditor5: getPackageVersion( 'stylelint-config-ckeditor5' ),
37
                packageTools: dev ?
7✔
38
                        // Windows accepts unix-like paths in `package.json`, so let's unify it to avoid errors with paths.
39
                        'file:' + path.resolve( __dirname, '..', '..', '..', 'ckeditor5-package-tools' ).split( path.sep ).join( path.posix.sep ) :
40
                        '^' + getPackageVersion( '@ckeditor/ckeditor5-package-tools' )
41
        };
42
};
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