next-purescript-example icon indicating copy to clipboard operation
next-purescript-example copied to clipboard

[suggestion] Next.js | Purescript Integration Plugin

Open bySabi opened this issue 4 years ago • 5 comments
trafficstars

Hi @jonasbuntinx I have been following this repository. It would be nice to have a next-purescript plugin to integrate Purescript in Next.js easily and transparently, similar to how Typescript is integrated today.

Currently it is quite tedious and error prone to copy the webpack configuration and dhall files from this repository.

Thanks for taking the time to develop this example it is very helpful for beginners.

bySabi avatar Jan 06 '21 09:01 bySabi

Hi @bySabi

Do you mean this?: https://nextjs.org/docs/basic-features/typescript Cause that is a feature of Next.js itself.

Or is there another typescript plugin you are referring too?

jonasbuntinx avatar Jan 08 '21 04:01 jonasbuntinx

Few versions ago of Next.js it was necessary to add typescript explicitly. Now it is integrated. Sorry for the confusion. However it is still a plugin. You can see the "official" plugins here: https://github.com/vercel/next-plugins/tree/master/packages EDIT: plugin folders are empty. sorry :-)

This the old repo commit: https://github.com/vercel/next-plugins/tree/139d283a26905908854de3c4911777cf8a5b9915/packages

bySabi avatar Jan 08 '21 07:01 bySabi

Thanks, I'll have a look.

jonasbuntinx avatar Jan 08 '21 09:01 jonasbuntinx

@jonasbuntinx thanks a lot for this repository! would have taken me ages to put all these pieces together and still would have messed up building and deployment. Wouldn't venture into using Purescript for production application without your work; thanks so much!!!

idfunctor avatar May 22 '21 18:05 idfunctor

@idfunctor Thanks, I'm really glad this example turned out to be useful to people and is able to spread the use of PureScript.

jonasbuntinx avatar May 24 '21 08:05 jonasbuntinx