Skip to content
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

fix: Reworking dirReplacements system to work with SetPath and Blocks #87

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

deregtd
Copy link
Collaborator

@deregtd deregtd commented Jun 7, 2024

  • SetPath was not running through the dirreplacements system, so had to plumb things through fairly differently than before, but I like this solution much better
  • Blocks were not loading properly because the path replacement was happening at the end of the process instead of during creation, so it was unable to find the file to load blocks from, and always stomped the output

* SetPath was not running through the dirreplacements system, so had to plumb things through fairly differently than before, but I like this solution much better
* Blocks were not loading properly because the path replacement was happening at the end of the process instead of during creation, so it was unable to find the file to load blocks from, and always stomped the output
@deregtd deregtd requested a review from jaredallard June 7, 2024 21:41
Copy link

cloudflare-pages bot commented Jun 7, 2024

Deploying stencil with  Cloudflare Pages  Cloudflare Pages

Latest commit: a9405e3
Status: ✅  Deploy successful!
Preview URL: https://72162dfa.stencil-1wj.pages.dev
Branch Preview URL: https://ddr-betterdirreplace.stencil-1wj.pages.dev

View logs

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 15 lines in your changes missing coverage. Please review.

Files Patch % Lines
internal/codegen/stencil.go 63.63% 4 Missing and 4 partials ⚠️
internal/testing/testmemfs/testmemfs.go 40.00% 3 Missing and 3 partials ⚠️
internal/codegen/tpl_file.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

internal/codegen/template.go Show resolved Hide resolved
internal/modules/module.go Outdated Show resolved Hide resolved
Co-authored-by: Jared Allard <jaredallard@users.noreply.github.com>
@deregtd deregtd merged commit 3c635f7 into main Jun 10, 2024
4 checks passed
@deregtd deregtd deleted the ddr/betterdirreplace branch June 10, 2024 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants