Coralite v0.4.0
Coralite’s latest release, **v0.4.0**, introduces foundational updates to its HTML module static site generator, with a focus on improving template handling and End-to-End (E2E) testing infrastructure. This update includes a breaking change that renames the -c/--components
option to -t/--templates
, reflecting a shift in architecture toward explicit template management.
Key Changes #
- BREAKING CHANGE: The
-c/--components
command-line option has been deprecated in favor of-t/--templates
, aligning with a new emphasis on template-driven rendering. Documentation and type definitions have been updated accordingly. - Moved component-related files to the
templates
directory, improving organisational clarity for project structures. - Updated
evalComputedTokens
function to ensure compatibility with modern Node.js versions through revisedDirent
handling in package.json parsing. - Enhanced TypeScript definitions by adding the
CoraliteComment
type and updatingCoralTypePath
for better template-specific metadata extraction.
Infrastructure Improvements #
- Integrated Playwright for E2E testing, including a dedicated debug webserver and updated CI/CD pipelines to run tests across one browser per branch event.
- Added E2E test coverage for
index.html
, ensuring core rendering logic is validated during development and deployment workflows. - Refactored CI configurations, including the addition of
--experimental-vm-modules
to the HTML script for broader compatibility.
Get the release #
npm install coralite@0.4.0
For detailed information on all changes, refer to the git v0.4.0 changelog
Related posts
- Coralite v0.11.3 - 18 June 25
- Coralite v0.11.2 - 15 June 25
- Coralite v0.11.1 - 5 June 25