Fork me on GitHub
#squint
<
2023-11-03
>
borkdude10:11:52

It might be fun to try squint for Advent of Code this year

grounded_sage16:11:35

I'd like to go through a d3 course using squint and I'm looking for a quick scaffold to get started with where I can work in the browser. Is there any around?

borkdude16:11:21

The examples/vite-react

borkdude16:11:45

I recommend using vjte for front end projects , you can ignore react

grounded_sage16:11:58

cool. Yea I will haha. Thanks I was looking at the wordle repo but the scripts in readme don't work for getting it started.

borkdude16:11:34

Can you please post an issue for that?

grounded_sage16:11:44

Oh I see there is also a version in the examples dir. I'll take a look at that. I was referring to the third party / externally referenced repo

👍 1
grounded_sage16:11:16

Under projects using

grounded_sage17:11:06

npx squint watch https://github.com/squint-cljs/squint#watch Is the vite-react example supposed to have squint in the package.json?

borkdude17:11:35

You need the squint stdlib

borkdude17:11:47

But install it using npm install

borkdude17:11:00

Not with the local link like in the example

grounded_sage17:11:18

I think this example needs squint in the package json for the npm install, a html file that requires the built script and a serve script.

grounded_sage17:11:34

Then it could also probably be referenced up at the quickstart.

grounded_sage17:11:47

Happy to do it if this sounds reasonable.

grounded_sage17:11:53

Oh I missed some docs. Nvm. Lemme look at them more 😛

grounded_sage17:11:12

Does vite create a temporary html or something? I am not familiar with this tool. When I run bb dev I get this.

VITE v4.5.0  ready in 224 ms

  ➜  Local:   
  ➜  Network: use --host to expose
  ➜  press h to show help 
But there is no index.html

grounded_sage17:11:48

Sorry about the million questions. Was just wanting to speed run into this D3 course without much ceremony. But I respect that this is still early stage developments and appreciate your work immensely.

grounded_sage17:11:24

I'd like to do a whole course on using D3 from Squint and put it up as a public repo. But have limited bandwidth at the moment for figuring out the development environment for this. So if there is a good quickstart that spins me up into a browser I would be super grateful for that.

grounded_sage18:11:51

The course for reference to anyone interested. https://www.youtube.com/watch?v=xkBheRZTkaw

borkdude18:11:41

You create the index.html

borkdude18:11:58

And you load the Js from there. Please check the example project

borkdude19:11:13

Just copy the vite react example, npm install squint-cljs@latest, run bb dev and then make your changes

borkdude19:11:36

Including the index.html file and everything

grounded_sage19:11:57

👍 I’ll circle back to it when I am rested and look at it again with fresh eyes.

borkdude08:11:51

Ah now I get the confusion, I had the public directory in .gitignore

borkdude08:11:06

now it's added to the git repo, sorry for the confusion!

grounded_sage08:11:22

All good. I did notice the public folder missing but thought things might be autogenerated. I’m glad we figured it out.

👍 1
grounded_sage10:11:36

I ended up speed running that video and got what I needed before we found this out so I unfortunately won’t be circling back. But I might have something else to try this out on soon using Sveltekit. I did spin it up before these messages and it worked pretty seamlessly