feat(assets): add AssetManager and CDK scaffold templates#1809
Open
tejaskash wants to merge 2 commits into
Open
feat(assets): add AssetManager and CDK scaffold templates#1809tejaskash wants to merge 2 commits into
tejaskash wants to merge 2 commits into
Conversation
tejaskash
force-pushed
the
feat/asset-manager-core
branch
2 times, most recently
from
July 22, 2026 20:38
7a9663a to
15433db
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## refactor #1809 +/- ##
============================================
+ Coverage 93.94% 94.03% +0.08%
============================================
Files 122 125 +3
Lines 6462 6555 +93
============================================
+ Hits 6071 6164 +93
Misses 391 391 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Introduce the asset embedding + rendering subsystem: AssetManager renders asset trees from either Bun.embeddedFiles (compiled binary) or the source filesystem (dev/node), applying Handlebars templating with HTML escaping disabled and atomic writes. - src/fs/atomicWrite: central temp-file + rename write util - src/assetManager: AssetManager, types, barrel, tests, snapshot baseline - src/assets/cdk: CDK project scaffold templates (payload, not source) - tsconfig/bunfig/oxlint/prettier: exclude src/assets from all tooling - add handlebars dependency
Remove comment about directory injection for testability.
tejaskash
force-pushed
the
feat/asset-manager-core
branch
from
July 22, 2026 21:06
cafb131 to
356105c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces the asset embedding + rendering subsystem — the foundation for project scaffolding.
AssetManagerrenders an asset tree from eitherBun.embeddedFiles(compiled standalone binary) or the source filesystem (dev / node distribution), applying Handlebars templating with HTML escaping disabled and writing each file atomically.This is PR 1 of 3 in a stacked series:
AssetManager,atomicWrite, CDK templates, tooling ignoresscripts/build.tsthat bundles/embeds assets (stacks on this)AssetManagerintoFsProjectManager(stacks on this)What's included
src/fs/atomicWrite— central temp-file +renamewrite util so a crashed render never leaves a half-written file behindsrc/assetManager—AssetManager, types, barrel, unit tests, snapshot baselineembeddedFiles.lengthnoEscape(assets are code/config, not HTML)gitignore.template/npmignore.template→.gitignore/.npmignoreon rendersrc/assets/cdk— CDK project scaffold templates (payload copied verbatim to generated projects, not CLI source)src/assetsfrom tsc,bun test, coverage, oxlint, prettier (the templates ship their own*.test.tsdepending on packages the CLI doesn't install)handlebarsdependencyTesting
bun run typecheck— cleanbun test— 266 pass, 1 snapshot