-
Notifications
You must be signed in to change notification settings - Fork 55
[O] Add cached build and dev mode #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds build caching and a development mode to improve build performance and developer experience. The changes introduce a caching system that tracks file modifications and reuses previously generated results, along with a watch mode that automatically rebuilds on file changes.
- Implements a build cache system using MD5 hashes to detect file changes and avoid unnecessary rebuilds
- Adds a file watcher that monitors source directories and triggers rebuilds on changes
- Integrates cache logic into blur code generation and MDX page compilation
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds concurrently package and its dependencies for running multiple commands in parallel |
| scripts/cache.ts | New cache system implementation with file hashing, change detection, and result storage |
| scripts/watch.ts | New watch mode script that monitors file changes and triggers debounced rebuilds |
| scripts/build.ts | Integrates caching into build pipeline for blur codes and MDX pages; adds error handling wrapper |
| package.json | Adds new watch, dev, and clean scripts; adds concurrently dev dependency |
| .gitignore | Excludes the .build-cache directory from version control |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.