LearnNewsExamplesServices
Frontmatter
id7151
titleFinalize and Integrate AST-based Build Process
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 1, 2025, 12:32 PM
updatedAtAug 1, 2025, 1:06 PM
githubUrlhttps://github.com/neomjs/neo/issues/7151
authortobiu
commentsCount0
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 1, 2025, 1:06 PM

Finalize and Integrate AST-based Build Process

Closed v10.3.0 enhancement
tobiu
tobiu commented on Aug 1, 2025, 12:32 PM

1. Summary

This ticket covers the final integration of the robust, AST-based template processing into the main build-es-modules script, and the subsequent cleanup of temporary development scripts.

2. Rationale

After proving the AST-based approach in a dedicated script (buildSingleFile.mjs), it was necessary to merge this superior logic into the primary build script (buildESModules.mjs) that processes the entire project. This ensures that all files benefit from the robust template conversion. Consolidating the logic also simplifies the build toolchain.

3. Scope & Implementation Plan

  1. Integrate Logic: The minifyFile function from buildSingleFile.mjs, containing the full AST parsing, transformation, and code generation logic, was moved into buildESModules.mjs, replacing the older, less robust implementation.
  2. Cleanup: The temporary buildSingleFile.mjs script was deleted from the repository.
  3. Rename Script: For improved clarity and consistency, the build-es-modules npm script in package.json was renamed to build-dist-esm.

4. Definition of Done

  • The buildESModules.mjs script now uses the AST-based approach for all files.
  • The temporary buildSingleFile.mjs script has been removed.
  • The corresponding npm script has been renamed to build-dist-esm.
  • The full build process runs successfully, correctly transforming all html templates across the project.
tobiu assigned to @tobiu on Aug 1, 2025, 12:32 PM
tobiu added the enhancement label on Aug 1, 2025, 12:33 PM
tobiu added parent issue #7150 on Aug 1, 2025, 12:33 PM
tobiu removed parent issue #7150 on Aug 1, 2025, 12:33 PM
tobiu added parent issue #7130 on Aug 1, 2025, 12:33 PM
tobiu referenced in commit a267273 - "Finalize and Integrate AST-based Build Process #7151" on Aug 1, 2025, 12:34 PM
tobiu closed this issue on Aug 1, 2025, 1:06 PM