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

update playground #3857

Closed
bobzhang opened this issue Oct 1, 2019 · 6 comments
Closed

update playground #3857

bobzhang opened this issue Oct 1, 2019 · 6 comments

Comments

@bobzhang
Copy link
Member

bobzhang commented Oct 1, 2019

No description provided.

@thangngoc89
Copy link
Contributor

What is this issue about? Could you provide more details?

@bobzhang
Copy link
Member Author

@thangngoc89 this website is not upgraded for a while: https://bucklescript.github.io/bucklescript-playground/

@thangngoc89
Copy link
Contributor

are you ok with me sending a PR upstream changes I've made in nit's playground to bucklescript?

Changes include:

  • add refmt_api so playground can support reason syntax out of the box
  • support 4.06
  • clean up the build process

I can make it several PRs if that's what you prefered

@bobzhang
Copy link
Member Author

@thangngoc89 Yeah, that would be nice.
About changes, small diffs are always preferred, thank you in advance

@ryyppy
Copy link
Member

ryyppy commented Nov 26, 2019

Since #3976 was merged, following playground features are now in:

  • Support Reason syntax out of the box
  • Add 4.06 support

Here is a list of major tasks we need to tackle next:

External lib loading

  • Make the external lib loading work w/ 4.06 (ReasonReact)
  • Improve the lib loading process by being able to point to different require paths (different React versions etc)

Playground Tests

  • Add simple test infrastructure for the playground bundle
    • Test: Make sure the bsrefmt / refmt_api versions are in sync!
    • Test: Make sure the APIs are correctly exposed

Scripts and tools

Colocate all important scripts and tools in a toplevel playground directory, also:

  • Copy the cmt / cmj serialization script to the playground dir and fix the serialization problems with the most recent JSOO.
  • Add instructions on how to use the jsoo cli for converting modules into jsoo-serialized js bundles
  • Set repl.js BS_PLAYGROUND to ../playground by default (should always succeed without setting up your own playground directory)
  • Have a single index.html in there loading the exports.js and a simple serve instruction (cd playground && python -m SimpleHttpServer) to quickly test changes manually
  • Redesign the playground API to be more streamlined

Cleanup

  • Get rid of 4.02 based instructions in repl.js / Contributing etc.
  • Remove lib/stdlib-402 and all occurrences in the infrastructure?

@ryyppy
Copy link
Member

ryyppy commented Jun 8, 2020

This should be closed in favor of #4450 since things have changed drastically the past few months.

@ryyppy ryyppy closed this as completed Sep 28, 2020
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