Skip to content

build(*): add cp.mjs script for file copying and update build scripts #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

lumirlumir
Copy link
Owner

This pull request introduces updates to streamline file copying processes across multiple packages, refactor scripts for consistency, and improve documentation. The most significant changes involve the addition of a reusable file copy script (cp.mjs), updates to package build commands to use this script, and the replacement of apt commands with apt-get for better compatibility.

File Copying Enhancements:

  • Added a new script scripts/cp.mjs to facilitate file copying with support for recursive and forced operations. This script is now reusable across packages.
  • Updated build scripts in packages/clang-format-git-python/package.json, packages/clang-format-git/package.json, and packages/clang-format-node/package.json to replace shx cp commands with node ../../scripts/cp.mjs, enhancing consistency and maintainability. [1] [2] [3]

Configuration Updates:

  • Added cp.mjs to .github/sync-client.yml for syncing scripts across repositories.

Compatibility Improvements:

  • Replaced apt commands with apt-get in .github/workflows/test-cross-platform.yml and website/docs/further-reading/build-process.md for improved compatibility and standardization. [1] [2]

@Copilot Copilot AI review requested due to automatic review settings July 12, 2025 17:05
Copy link

vercel bot commented Jul 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
npm-clang-format-node-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 5:05pm

@github-actions github-actions bot added 🏷️ scope: * Auto-generated label based on Conventional Commits specification for GitHub release notes 🏷️ type: build Auto-generated label based on Conventional Commits specification for GitHub release notes labels Jul 12, 2025
Copy link

Labels have been automatically applied based on the Conventional Commits specification.🏷️

@lumirlumir lumirlumir changed the title build(*): add cp.mjs script for file copying and update build scripts to use it build(*): add cp.mjs script for file copying and update build scripts Jul 12, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a reusable Node-based file copy utility and standardizes copy commands across package build scripts, updates CI/docker workflows for apt-get, and ensures the new script is synced via GitHub configurations.

  • Introduces scripts/cp.mjs for recursive, forced file copying.
  • Updates package build scripts to use node ../../scripts/cp.mjs instead of shx cp.
  • Replaces apt with apt-get in CI workflows and documentation; syncs the new script in GitHub sync client.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/docs/further-reading/build-process.md Swapped apt -> apt-get in build instructions
scripts/cp.mjs Added new reusable copy script
packages/clang-format-node/package.json Updated build script to use cp.mjs
packages/clang-format-git/package.json Updated build script to use cp.mjs
packages/clang-format-git-python/package.json Updated build script to use cp.mjs
.github/workflows/test-cross-platform.yml Swapped apt -> apt-get in Docker setup steps
.github/sync-client.yml Added scripts/cp.mjs to sync client configuration
Comments suppressed due to low confidence (2)

scripts/cp.mjs:1

  • There are no tests covering this new copy utility. Adding unit or integration tests will help ensure it behaves as expected under different scenarios.
/**

scripts/cp.mjs:1

  • [nitpick] Add a note in the project README or a top-level docs file to explain the purpose and usage of cp.mjs, so consumers know when and how to use it.
/**

Copy link

codecov bot commented Jul 12, 2025

Bundle Report

Changes will increase total bundle size by 31 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
website-esm 603.07kB 31 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: website-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
@localSearchIndexroot.*.js 23 bytes 93.04kB 0.02%
docs_further-reading_build-process.*.js 8 bytes 7.83kB 0.1%

Files in docs_further-reading_build-process.*.js:

  • ./docs/further-reading/build-process.md → Total Size: 7.74kB

Copy link

codecov bot commented Jul 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d8fec7b) to head (50fe59a).
Report is 1 commits behind head on main.

@@            Coverage Diff            @@
##              main      #400   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          422       422           
=========================================
  Hits           422       422           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8fec7b...50fe59a. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lumirlumir lumirlumir merged commit 0f5dd9a into main Jul 12, 2025
54 checks passed
@lumirlumir lumirlumir deleted the build-add-cp-mjs branch July 12, 2025 17:10
lumirlumir added a commit that referenced this pull request Jul 14, 2025
…ch`) (#404)

## Release Information: `v1.3.5`

New release of `lumirlumir/npm-clang-format-node` has arrived! 🎉

This PR bumps the package versions from `v1.3.4` to `v1.3.5` (`patch`).

See
[Actions](https://github.com/lumirlumir/npm-clang-format-node/actions/runs/16264909140)
for more details.

| Info        | Value                      |
| ----------- | -------------------------- |
| Repository  | `lumirlumir/npm-clang-format-node` |
| SEMVER      | `patch`     |
| Pre ID      | `canary`      |
| Short SHA   | df49101       |
| Old Version | `v1.3.4`  |
| New Version | `v1.3.5`  |

<!-- Release notes generated using configuration in .github/release.yml
at main -->

## What's Changed
### 🐛 Bug Fixes
* fix(*): drop `shx` and replace it with Node.js native script by
@lumirlumir in
#402
### 🛠️ Builds
* build(*): add `cp.mjs` script for file copying and update build
scripts by @lumirlumir in
#400
### ♻️ Code Refactoring
* refactor(*): simplify paths to the binary files by @lumirlumir in
#401
### ⬆️ Dependency Updates
* chore(deps-dev): bump eslint from 9.30.1 to 9.31.0 by @dependabot[bot]
in #403


**Full Changelog**:
v1.3.4...v1.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ scope: * Auto-generated label based on Conventional Commits specification for GitHub release notes 🏷️ type: build Auto-generated label based on Conventional Commits specification for GitHub release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy