purescript / roadmap

Long-term projects not covered by other issues lists
20 stars 1 forks source link

purescript-brunch #46

Closed texastoland closed 8 years ago

texastoland commented 8 years ago

PureScript takes a bit of manual work to get started with. Perhaps a Brunch plugin and skeleton could wrap other recommended tools like psa or psc-pane, Pulp, etc. Ideally it would seamlessly compile FFI with Babel or TypeScript too. Inspired by elm-brunch and elm-brunch-starter.

texastoland commented 8 years ago

@paf31 This one is core in Elm but follows PS Bin on my personal todo regardless. Feel free to close.

megamaddu commented 8 years ago

This would be big for me if it worked well with other CommonJS things like Babel. Anything that makes it easier to add one or two lone PS files to an existing project will be a huge evangelism win too. It's a weak point for Elm.

texastoland commented 8 years ago

^ That's why I think it should be official :) As old as Brunch is I'm not aware of another generic build-by-convention tool. They are either too general (Grunt, Gulp, NPM scripts) or too specific (every static site generator). It immediately follows PS Bin on my personal todo list in term of priorities (a couple parsing changes are in front).

megamaddu commented 8 years ago

Yeah, you could also do webpack or browserify transforms, but they have more complicated/limited apis while also being less general than brunch. Brunch seems like the right layer to fit into.

paulyoung commented 8 years ago

Putting this here for reference: https://github.com/rtfeldman/elm-webpack-loader

It was already in the back of my mind when I read this, and now webpack has been mentioned 😀

garyb commented 8 years ago

:zap: https://github.com/ethul/purs-loader

paulyoung commented 8 years ago

:raised_hands:

megamaddu commented 8 years ago

Yeah, I've had mixed results with it. It fits better into the JS ecosystem than PS. For example you can't use the dead code elimination anymore (unless that's changed recently). Brunch might have the same problems though.

texastoland commented 8 years ago

💥 I've been collecting thoughts what it would take to make PureScript a viable tool for consulting services (compiler stability aside). They revolve primarily around community building (hence the upcoming remote meetups), first-in-class tooling (hence this ticket), and accessible (both locatable and approachable) educational resources (upcoming Egghead videos just waiting for beginner friendly tools I'm hacking on). Would y'all be interested in me surfacing them somehow?

texastoland commented 8 years ago

This is my immediate priority following PS Bin and Witherable but perhaps not a core utility. Closing here but keeping on my personal list.