LearnNewsExamplesServices
Frontmatter
id7823
titleOptimize highlight.js build to skip unnecessary regeneration
stateClosed
labels
enhancementdeveloper-experienceai
assigneestobiu
createdAtNov 20, 2025, 3:11 PM
updatedAtNov 20, 2025, 3:15 PM
githubUrlhttps://github.com/neomjs/neo/issues/7823
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 20, 2025, 3:15 PM

Optimize highlight.js build to skip unnecessary regeneration

Closed v11.8.0 enhancementdeveloper-experienceai
tobiu
tobiu commented on Nov 20, 2025, 3:11 PM

The buildScripts/buildHighlightJs.mjs script currently performs a full repository clone and build of highlight.js every time it runs. This is inefficient when running buildAll multiple times.

The script should be optimized to:

  1. Check if the dist/highlight directory already contains the expected files.
  2. If the files exist, skip the build process.
  3. Use commander to add a -f, --force flag to bypass the check and enforce regeneration.

This will significantly speed up the build process for subsequent runs.

tobiu added the enhancement label on Nov 20, 2025, 3:11 PM
tobiu added the developer-experience label on Nov 20, 2025, 3:11 PM
tobiu added the ai label on Nov 20, 2025, 3:11 PM
tobiu assigned to @tobiu on Nov 20, 2025, 3:11 PM
tobiu referenced in commit 6ed71d7 - "Optimize highlight.js build to skip unnecessary regeneration #7823" on Nov 20, 2025, 3:15 PM
tobiu closed this issue on Nov 20, 2025, 3:15 PM