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

[DRAFT] use foundry & remove js #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wminshew
Copy link

Started as an interesting experiment & now opening this draft PR to continue the conversation. Goal was to get rid of all js / dependencies to make it easy to import & use via foundry. Ultimately ended up using parcel (installed globally) for hot-reloading. Definitely won't make sense to merge this, but might be interesting to take bits & pieces of it or pull together something more polished for merging

test with:

chmod +x hot-chain-svg.sh
./hot-chain-svg.sh

(can also just run these two commands in separate terminals for a marginally more cumbersome yet cleaner experience)

notes:

  • the "Hello, token" string doesn't appear to be rendering, not sure why (I know very little about svgs so I didn't bother trying to debug -- from the browser inspector it looks like it's getting commented out but not sure why)
<text x="20" y="40" font-size="22" fill="white"><!--[CDATA[Hello, token #]]-->1</text>
  • noticing the below errors from forge t --watch -- doesn't seem to prevent it from working, but obviously not ideal. Might just be a foundry bug? or I might be mis-using the vm.writeFile cheatcode somehow
[⠒] Compiling...2022-10-13T05:09:09.341469Z ERROR watchexec::command::supervisor: while waiting on process err=io(waiting on process group): No child processes (os error 10)
2022-10-13T05:09:09.341538Z ERROR watchexec::watchexec: runtime error err=io(waiting on process group): No child processes (os error 10)
2022-10-13T05:09:09.424690Z ERROR watchexec::command::supervisor: while waiting on process err=io(waiting on process group): No child processes (os error 10)
2022-10-13T05:09:09.424737Z ERROR watchexec::watchexec: runtime error err=io(waiting on process group): No child processes (os error 10)
[⠃] Compiling...2022-10-13T05:09:09.688119Z ERROR watchexec::command::supervisor: while waiting on process err=io(waiting on process group): No child processes (os error 10)
2022-10-13T05:09:09.688198Z ERROR watchexec::watchexec: runtime error err=io(waiting on process group): No child processes (os error 10)

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.

1 participant