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

Playground to TypeScript #37

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Playground to TypeScript #37

merged 1 commit into from
Mar 3, 2022

Conversation

Hazelfire
Copy link
Collaborator

@Hazelfire Hazelfire commented Mar 2, 2022

Sorry for the large pull request, there's a couple of changes happening here. Hopefully however it should be relatively clear.

Playground now uses @squiggle/components

This is both a benefit for refactoring and a couple of features, however means that the playground is currently missing some of the debug functionality that use to be present in the playground, until that is re-implemented in @squiggle/components.

Playground no longer uses rescript

The playground use to contain a large amount of rescript code that was simply there to interop with existing typescript code (Antd + @squiggle/components). I've rewritten the playground in Typescript instead, feeling this is a better way to go due to this only really being a UI package

Couple of dependency problems resolved

react-vega was causing a couple of issues with typescript. It depended on an old version of @types/react, and I had to enforce the resolution to be the newer version to allow it to compile correctly. Furthermore, a dependency of react-vega fast-json-patch did not build under parcel build (parcel-bundler/parcel#7781), so I've added --no-scope-hoist to playground's build as a temporary workaround until the parcel bug gets fixed.

CI scripts

There are a collection of CI scripts in the root package.json which can be used by netlify to easily build a specific playground.

Removing lerna

lerna was turning out to be a pain and I never really used it. Yarn workspaces works just fine.

After this, I'd be pretty happy to see this be the new master.

@netlify
Copy link

netlify bot commented Mar 2, 2022

❌ Deploy Preview for squiggle-playground failed.

🔨 Explore the source changes: c8bb0c2

🔍 Inspect the deploy log: https://app.netlify.com/sites/squiggle-playground/deploys/621ffe57a966c80008c82a01

@Hazelfire
Copy link
Collaborator Author

Netlify deploy: https://622074d535d3f06ebeb2d1ea--squiggle-playground.netlify.app/

@OAGr
Copy link
Contributor

OAGr commented Mar 3, 2022

Great, happy to see.

@OAGr OAGr merged commit 89c945f into rescript-refactor Mar 3, 2022
@OAGr OAGr deleted the playground-refactor branch March 3, 2022 19:05
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

Successfully merging this pull request may close these issues.

2 participants