Frontmatter
| id | 8761 |
| title | Build Scripts: Add copyFile and minifyFile helpers |
| state | Closed |
| labels | enhancementaibuild |
| assignees | tobiu |
| createdAt | Jan 17, 2026, 6:29 PM |
| updatedAt | Jan 17, 2026, 6:30 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8761 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 17, 2026, 6:30 PM |
Build Scripts: Add copyFile and minifyFile helpers

tobiu
Jan 17, 2026, 6:30 PM
Input from Gemini 3 Pro:
✦ I have created the requested helper scripts:
buildScripts/copyFile.mjs: Handles single file copying with directory creation.buildScripts/minifyFile.mjs: Handles single file minification usingterser.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
Description
We need helper scripts for file operations during the build process, specifically to support the copying and minification of single files like
DefaultConfig.mjswhich are excluded from the main bundle.Tasks
buildScripts/copyFile.mjs: A robust script to copy a single file to a target destination, creating parent directories if needed.buildScripts/minifyFile.mjs: A script to minify a single ES module file usingterser.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.