You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,17 @@ $ node
286
286
287
287
Run `yarn workspace playground test` for a quick sanity check to see if all the build artifacts are working together correctly. When releasing the playground bundle, the test will always be executed before publishing to catch regressions.
288
288
289
+
You can test the bundle within the playground by running a web server and playground locally.
290
+
291
+
```sh
292
+
# Serve playground bundles locally
293
+
yarn workspace playground serve-bundle
294
+
295
+
# And run the website with "PLAYGROUND_BUNDLE_ENDPOINT"
296
+
cd path/to/rescript-lang.org
297
+
PLAYGROUND_BUNDLE_ENDPOINT=http://localhost:8888 npm run dev
298
+
```
299
+
289
300
### Working on the Playground JS API
290
301
291
302
Whenever you are modifying any files in the ReScript compiler, or in the `jsoo_playground_main.ml` file, you'll need to rebuild the source and recreate the JS bundle.
0 commit comments