Introducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Thank you! I hadn’t considered rewatch and monorepo setups. I’ll work on addressing these in a future version.
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
I created a very simple project, built it with rewatch, and tested it - it seems to work as intended. Are you perhaps using rewatch in a monorepo setup?
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Yeah, rewatch with pnpm workspaces similar to this sample repo - GitHub - hellos3b/rewatch-pnpm: Sample project for using rewatch with pnpm workspaces
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Thanks, I’m struggling to setup the monorepo with rewatch actually. It would be much helpful to fix the issue.
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
I cloned the shared pnpm_workspace repository and tried to build it according to the README instructions, but I’m encountering errors. How should I manage dependencies and orchestrate the build...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
fham: IMO at some point rewatch should do it since it has probably all the necessary information to even display the graph over package boundaries. Yes, this should be some sort of dump command from...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
@jfrolich has talked about an RPC-style interface to Rewatch. Maybe this would be a good first feature candidate.
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
I’ve identified that the issue in monorepos appears to be related to path resolution. If you open your IDE at the package or app root level within the monorepo, the dependency information should...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
OH yeah sorry, was on mobile last night but that repo was created specifically for reproducing that issue in rewatch with pnpm. Just thought it’d help showcase project structure If it’d help, I know...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Other loose ideas on this topic (do with it what you will): Sort nodes on the most vs least dependencies Filter nodes on least/max amount of dependents and/or dependencies Highlight all paths to a...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Thanks for the ideas. I agree that sort and filter are essential features that I’ve been thinking about too. And to add a few more suggestions: Showing unused props for React component modules...
View ArticleBindings: to create or reuse
That said, it’d be pretty convenient if the compiler could pick up some metadata from package.json of installed packages instead of relying on manually syncing these Honestly, this can actually be...
View ArticleBindings: to create or reuse
Btw, there’s SWR support in rescript-rest, which can be a good alternative to TanStack Query. GitHub GitHub - DZakh/rescript-rest: 😴 ReScript RPC-like client, contract, and... 😴 ReScript RPC-like...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
@hellos3b @fham @illusionalsagacity I released version v0.5.0 which supports monorepos. After some investigation, it seems that ReScript projects have slightly different monorepo structures. For...
View ArticleBinding to union types in record fields in JS/TS
Hey, as a continuation to Using react-spring and use-gesture, how would you approach it? I have been investigating ways to represent the record fields for the configuration which are usually TS unions...
View ArticleBinding to union types in record fields in JS/TS
Broadly speaking, I’d go with option 1. However, one important thing to remember is this: you don’t have to bind to all available values. For example, per gesture’s docs, passing a Delay of true is...
View ArticleBinding to union types in record fields in JS/TS
That is really good advice, I’ve been looking at the different options and with that in mind most of the union types provided for convenience/sugar just go away by providing the canonical version,...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Cool! It works now to display the sub-projects of rescript-mui but the “Focus on module dependencies” still does not work. Here is the repo: GitHub - cca-io/rescript-mui: ReScript bindings for MUI I...
View ArticleIntroducing Bibimbob: VSCode Extension for ReScript Dependency Visualization
Oh, the case where rescript.json is in the monorepo root. That’s a case I haven’t tested yet. Thank you.
View ArticleBinding to union types in record fields in JS/TS
Nothing that comes to mind; I’m sure someone else will chime in if I’m wrong.
View Article