Fork me on GitHub
#squint
<
2023-05-04
>
chromalchemy22:05:55

What is the best way to hack on an existing web page in the browser using squint? send repl results (js code string) to browser devtools js console to be automatically evaluated there? Spit js code to tampermonkey extension code file (via Tampermonkey local file url?). Reload page. New js runs on pageload. Use Wally or webdriver to drive page and facilitate copy/paste/reload from repl. Tooling to sync an arbitrary web form with a code file or repl results…? Any best practices in this space? Could be a nice way to exercise squint outside the context of a larger project ceremony, and in meaningful, valuable contexts (like an admin dashboard)

borkdude22:05:27

The squint webpage has an eval box: https://squint-cljs.github.io/squint/

borkdude22:05:44

This works with the squint package from npm as is

borkdude22:05:25

You can view the source how it works

borkdude22:05:35

I'll be back tomorrow, 💤 time

borkdude22:05:39

Oh btw, there's also #C034FQN490E https://babashka.org/scittle/ You can make self-contained websites with that too

chromalchemy22:05:36

Ok Thanks! i was thinking of going with scittle too. I have it running in tampermonkey per your example! Awesome Was just wondering if i was missing a simple jvm squint browser repl option. I will look at that eval code.