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

ckeditor / ckeditor5-package-generator / f4c99530-ae63-40a1-afbe-652cf7f886a6

19 Sep 2024 07:44AM UTC coverage: 100.0%. Remained the same
f4c99530-ae63-40a1-afbe-652cf7f886a6

Pull #189

circleci

web-flow
Bump express from 4.19.2 to 4.21.0

Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #189: Bump express from 4.19.2 to 4.21.0

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/initialize-git-repository.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' );
5✔
9
const fs = require( 'fs' );
5✔
10
const { execSync } = require( 'child_process' );
5✔
11

12
/**
13
 * @param {string} directoryPath
14
 * @param {Logger} logger
15
 */
16
module.exports = function initializeGitRepository( directoryPath, logger ) {
5✔
17
        logger.process( 'Initializing Git repository...' );
4✔
18

19
        const options = {
4✔
20
                stdio: 'ignore',
21
                cwd: directoryPath
22
        };
23

24
        execSync( 'git init', options );
4✔
25

26
        try {
4✔
27
                execSync( 'git add -A', options );
4✔
28
                execSync( 'git commit -m "Initialize the repository using CKEditor 5 Package Generator."', options );
4✔
29
        } catch ( error ) {
30
                // Remove the `.git` directory in case of an error. It may happen that the developer didn't configure Git yet.
31
                // We could have resolved the error ourselves.
32
                // See: https://github.com/ember-cli/ember-cli/blob/3192a441e13ec7e88c71d480778971d81bfa436c/lib/tasks/git-init.js#L49-L66.
33
                fs.removeSync( path.join( directoryPath, '.git' ) );
1✔
34
        }
35
};
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