LearnNewsExamplesServices
Frontmatter
id8761
titleBuild Scripts: Add copyFile and minifyFile helpers
stateClosed
labels
enhancementaibuild
assigneestobiu
createdAtJan 17, 2026, 6:29 PM
updatedAtJan 17, 2026, 6:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/8761
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 17, 2026, 6:30 PM

Build Scripts: Add copyFile and minifyFile helpers

Closed v11.23.0 enhancementaibuild
tobiu
tobiu commented on Jan 17, 2026, 6:29 PM

Description

We need helper scripts for file operations during the build process, specifically to support the copying and minification of single files like DefaultConfig.mjs which are excluded from the main bundle.

Tasks

  1. Create buildScripts/copyFile.mjs: A robust script to copy a single file to a target destination, creating parent directories if needed.
  2. Create buildScripts/minifyFile.mjs: A script to minify a single ES module file using terser.

Acceptance Criteria

  • node buildScripts/copyFile.mjs -s <src> -t <dest> copies the file correctly.
  • node buildScripts/minifyFile.mjs <src> <dest> minifies and saves the file correctly.
  • Scripts are properly formatted and handle errors (e.g., missing params).
tobiu added the enhancement label on Jan 17, 2026, 6:29 PM
tobiu added the ai label on Jan 17, 2026, 6:29 PM
tobiu added the build label on Jan 17, 2026, 6:29 PM
tobiu referenced in commit 184e315 - "feat: Add copyFile and minifyFile build scripts (#8761)" on Jan 17, 2026, 6:29 PM
tobiu
tobiu Jan 17, 2026, 6:30 PM

Input from Gemini 3 Pro:

✦ I have created the requested helper scripts:

  1. buildScripts/copyFile.mjs: Handles single file copying with directory creation.
  2. buildScripts/minifyFile.mjs: Handles single file minification using terser.

These scripts are now ready to be used in the Webpack configurations.

tobiu assigned to @tobiu on Jan 17, 2026, 6:30 PM
tobiu closed this issue on Jan 17, 2026, 6:30 PM