Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2145 articles
Browse latest View live

Recommended way to decode a JSON

There is also rescript-json Coming from elm, I can say it resembles a lot the api of elm-json and keeps decoders/encoders very readable.

View Article


Image may be NSFW.
Clik here to view.

Recommended way to decode a JSON

Just for readability comparison with rescript-schema, which is on the right, and rescript-json documentation on the left. Unless you’re building for a Cloudflare Workers, in my opinion, this is the...

View Article


Recommended way to decode a JSON

For the record, rescript-json-combinators is very similar to elm-json, while also taking advantage of being written in rescript to make it significantly safer and more convenient in some (quite...

View Article

Image may be NSFW.
Clik here to view.

Recommended way to decode a JSON

rescript-json-combinators is also good I recommend it to everyone who doesn’t like eval in rescript-schema.

View Article

Image may be NSFW.
Clik here to view.

How to setup a root bsconfig for rewatch?

A bit late here but running into monorepo build problems again and found myself from google. I’ve created an issue in rewatch and included a testrepo github.com/rescript-lang/rewatch Rewatch with PNPM...

View Article


Image may be NSFW.
Clik here to view.

How to setup a root bsconfig for rewatch?

Noticed a PR from @rolandpeelen for adding a pnpm testrepo to the repository: github.com/rescript-lang/rewatch PNPM testrepo rescript-lang:master ← rescript-lang:pnpm opened 05:49PM - 08 May 24 UTC...

View Article

Duplicated packages

(post deleted by author)

View Article

Rescript Engineer at Draftbit (Full-Time, Remote)

Hey there—we’re Draftbit! We are a growing startup based in the US with a team spread all over the world. Our product is a no-code/low-code mobile app builder that exports React Native source code....

View Article


Image may be NSFW.
Clik here to view.

How to generate all compiled code in a single folder?

Greetings everyone! I’ve been writing rescript for quite a while now but this is my first post here. Nice to meet you We have a very large rescript app and building it from scratch takes a few minutes...

View Article


How to generate all compiled code in a single folder?

Can’t you just cache your whole node modules when your dependencies don’t change?

View Article

How to generate all compiled code in a single folder?

Hmm perhaps the problem is that we’re caching our node_modules before we run our rescript build, maybe if we ran it afterwards we’d benefit from the correct caching behavior. Worth a shot!

View Article

How to generate all compiled code in a single folder?

Well unfortunately rescript still builds everything from scratch even when we build before caching node_modules. I also added the lib folder to the list of cached folders, but it still rebuilds...

View Article

How to generate all compiled code in a single folder?

Do you use the default builder or rewatch? I guess the default builder if you use in source false. Would be worth trying with rewatch if you get any improvement. I hope some contributors that have a...

View Article


How to generate all compiled code in a single folder?

I’m using the default builder, we’re on a somewhat old stack, bs-platform v9. We’ve been blocked from upgrading due to various dependencies in our app that have conflicts with the latest version....

View Article

How to setup a root bsconfig for rewatch?

Found out that pnpm has a way to hoist local packages to node_modules without needing to explicitly pnpm add them: hoist-workspace-packages=true public-hoist-pattern[]=@testrepo/*

View Article


How to generate all compiled code in a single folder?

Well yeah you could try on a sample project if the latest versions or rewatch improve the situation, but I’m pretty sure you could achieve a better performance with a good caching strategy.

View Article

How to generate all compiled code in a single folder?

I’m pretty sure that they’re cached. I’m instructing circle to cache node_modules and lib folders after we complete the build. Perhaps the problem is that, if the cache logic uses timestamps, the...

View Article


How to generate all compiled code in a single folder?

I don’t get it, the timestamp of your dependencies’ bs.js should be newer than the timestamps of your dependencies’ .res files?

View Article

How to generate all compiled code in a single folder?

to be honest, things should just work out of the box, including the caching, but if it does not, there’s no way anyone will invest any time trying to fix bugs in a version of the compiler that was...

View Article

Monorepo with bun and nx, issue with rescript -w

Hi, I made a monorepo with rescript packages, so I need to run multiples rescript -w when I’m in dev mode. I used bun et just install nx. When I tried with bun: bun --filter "*" res:dev, it start but...

View Article
Browsing all 2145 articles
Browse latest View live