I looked at Vite but there is nothing on there site on how to install it? what are the steps?
I have vscode and were unble to install the vite templates as per the docs 'npx degit solidjs/templates/js my-app' A step by step tutorial should include steps to get started or in my case you can't. How to get started?
19 Replies
npm create vite@latest
There is a solid-ts template
npm create vite@latest my-solid-ts-app -- --template solid-ts
Vite
Next Generation Frontend Tooling
Thanks for sharing this.
the template were added to vite's official templates quite recently, so the docs should be updated to reflect it.
ok got it to load localhost
This is the outdated page.https://www.solidjs.com/guides/getting-started#try-solid
@davedbase , do you know how it can be updated so that the creation commands become i.e.?
typescript
npm create vite@latest my-app -- --template solid-ts
javascript
npm create vite@latest my-app -- --template solid
Ah, the solid-docs repo
Our old docs infrastructure is quite cumbersome. Basically we have to have edit the markdown, publish to npm and then publish the website.
Why we thought this was a good idea at the time...I dunno heh
whoa, that's extensive. okay, i'll make a pr anyway.
Thank you! 🙂
The new docs infra doesn't work this way at all
Thanks. I'll publish and deploy shortly
The new command generates the vite+solid app instead of the other one.
Everything's merged, just waiting on Cloudflare Pages to deploy.
Cool! Is the breaking CI in solid-docs a problem?
Nope
on the note of updating old stuff - I took the liberty to update the 2y old benchmarks on the front page, with the new version still showing Solid as a strong front-runner https://github.com/solidjs/solid-site/pull/496
GitHub
Update JS framework benchmark data by birkskyum · Pull Request #496...
The benchmark data was getting quite old, so I updated it. Only real change here is that Vue managed to leapfrog svelte/preact.
I also added a note that it's from Chrome 117 dataset to provid...
Thank you!
Deployed 🙂
Looks great! 🙂 I tried, and failed, to update Ember to 5.x in the js framework bench.
Ah, you're braver than I for trying at least hehehe
Actually managed to bump ember. solid-js is overtaking ember/inferno currently, and it might soon be reasonable to leave them out of the chart anyway