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

Running playground #51

Closed
veyndan opened this issue Oct 24, 2019 · 3 comments
Closed

Running playground #51

veyndan opened this issue Oct 24, 2019 · 3 comments
Labels
question Further information is requested

Comments

@veyndan
Copy link

veyndan commented Oct 24, 2019

I'm attempting to work on a previous issue that I have created, and would like to use playground to aid me in debugging. However, I'm having a couple of issues getting it to work.

First up, neither of the following dependencies can be resolved.

import { getUser } from '../../site/src/examples/FakeData'
import { UserItem } from '../../site/src/examples/ExampleComponents'

Second up, and this one is more on my limited experience in React, is how would you go about running the playground? Intuitively, I would want to run npm run playground but no playground script exists. Should I be running create-react-app in the playground directory? Something completely different?

@petyosi
Copy link
Owner

petyosi commented Oct 25, 2019

Hey,

for this to work, you have to checkout the site as site on the same level as the library.

Next, you can use npx parcel playground/grid.html to start the playground.

Disclaimer: this is quite a mess! I need to improve it.

@veyndan
Copy link
Author

veyndan commented Oct 25, 2019

Thanks! Got it to work. I agree that running the playground could be a bit easier.

@petyosi petyosi added the question Further information is requested label Nov 6, 2019
@petyosi
Copy link
Owner

petyosi commented Dec 29, 2020

A set of examples is present in the e2e directory. They are runnable through npm run preview e2e/{example}.tsx. Documented in the contributing section.

@petyosi petyosi closed this as completed Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants