-
Notifications
You must be signed in to change notification settings - Fork 131
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
Integration with Parcel? #134
Comments
Given that most of the PureScript projects I've seen end up using some kind of JS dependency and in the end need a bundler, I think some kind of integration with some bundler would be useful (the reason is "less moving parts that you have to integrate yourself") I think there are mainly two roads here:
|
I think the second approach makes more sense. It'd also make things easier for those coming from the JS world. This same approach could potentially be done for other backends as well. |
I'm less keen on the second approach personally, because in my experience, most of these JS tools expect to work on one file at a time. This means that very tight integration might not work so well with PureScript, where the expectation is that whenever something changes, you rerun the compiler with all of your source files as input. I (and a few others) have found, for example, that a webpack setup which uses |
Good point! Perhaps a better solution is to run a bash script that correctly integrates such tools together instead? |
No, Bash is often more trouble than it's worth, particularly for Windows users. I think in most cases the best approach is to point your javascript bundling tool at your purescript output directory and not build any extra integration between them. |
It looks like this is not really in our scope anymore, so I'll close for now |
Low priority.
Coming from this comment:
For context, I was only pointing out that
spago
doesn't currently have some sort ofbrowserify
-like built-in command. (I probably could have done a better job explaining that). So, this is not a request specifically forbrowserify
.It seems like
parcel
is a better option, so integratingparcel
intospago
sounds helpful. Still, it might be a bad idea. Since one can easily take the output ofspago
and push it intoparcel
, is this really necessary?Without such integration,
spago
might be a better overall solution to dependency management when other backends are considered. (In making this statement, I don't know what other backends use to get their PureScript dependencies. However, downloading the source code viaspago
and allowing other backend-specific build tools (e.g.parcel
) to do target-language-specific build-things seems like a good idea.)The text was updated successfully, but these errors were encountered: