Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1774

General build overview/tutorial for ReScript projects?

$
0
0

Hi there! I’m a developer with a lot of backend experience with functional languages, and frontend experience with Elm/ClojureScript.

Part of what’s been great with Elm and ClojureScript (when set up with new tooling) is that the source code → JS-output for the browser is contained in one, maybe two tools. Additionally, the tooling provides fast reloads of CSS and changes in the source code, meaning that for a programmer new to frontend, it’s easy to set up. And if you want to do something out of the ordinary, the documentation is good enough to understand how to change it for your needs.

For example: I’m working on a multi-page application using the pure browser Web API (i.e. no React), and how to set up a project like that isn’t common in ClojureScript, but you can figure out how with the user guide.

However, the documentation over at ReScript Installation doesn’t help me much here, and I think the primary problem for me is that I’m told to run npx create-rescript-app. This effectively lets me decide between Vite/React/Tailwind or Next.js/Tailwind, neither of which I want in the first place.

Well… the create-rescript-app isn’t a problem per say – I’d assume it’s quite nice if you know what’s happening – but the fact that I have no step-by-step walkthrough from scratch makes it hard for me to know exactly what rescript is doing and what other tools must be set up (and what they do). I presume this is understandable for JS/TS-users well versed in the ecosystem, but at least for me, it’s hard to know how to set things up manually.

Is there a tutorial somewhere on how to create a ReScript project from scratch, which also explains how the different tools interact with each other?


Viewing all articles
Browse latest Browse all 1774

Trending Articles