Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a watch mode? #12

Open
vasco3 opened this issue Nov 28, 2022 · 3 comments
Open

is there a watch mode? #12

vasco3 opened this issue Nov 28, 2022 · 3 comments

Comments

@vasco3
Copy link

vasco3 commented Nov 28, 2022

No description provided.

@claudebarde
Copy link

I am looking for the same feature :)
I could implement it myself with Nodemon, but if it was available out of the box, it would be super cool!

@bloodyowl
Copy link
Owner

hi!

there's no watch mode as the compiler emits a lot of these events.

a simple solution we could provide would be to provide a simple way to subscribe to the compiler saying "I'm done" through its websocket (like https://github.com/bloodyowl/rescript-react-starter-kit which triggers a webpack build on those events). would that work for you?

@claudebarde
Copy link

That would be a cool feature if it could be run directly from a script, but probably not worth it if you have to spend too much time on it :)

I just installed Nodemon and I use this command:

"res:watch_test": "nodemon --ext res --exec \"rescript clean -with-deps & rescript build & npm run res:test\""

(rescript clean -with-deps was necessary as a .bsb.lock file kept being created and messed with Nodemon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants