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

friction at running examples #82

Open
unlessgames opened this issue Oct 7, 2023 · 0 comments
Open

friction at running examples #82

unlessgames opened this issue Oct 7, 2023 · 0 comments

Comments

@unlessgames
Copy link

unlessgames commented Oct 7, 2023

Currently if one wants to check out this library and isn't familiar with spago, the readme inside the examples folder is not too helpful:

Build all examples with
```bash
npm run build-examples
```

This command doesn't actually build the purs files and running it without installing and building with spago results in an error. Maybe the readme could contain all the steps to build the examples or the npm run scripts should be setup differently like

"example-counter" : "spago build -p examples/Counter/Counter.purs && parcel build examples/Counter/counter.js --dist-dir examples/Counter/dist && parcel serve examples/Counter/counter.html"

to build and serve an example for an effortless setup.

I understand this exact solution wouldn't work with `npm run build-examples' and tests, just making a general suggestion.

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

1 participant