jonasbuntinx / next-purescript-example

Simple example app using Next.js with Purescript
https://next-purescript-example.netlify.app/
MIT License
66 stars 10 forks source link

[suggestion] Next.js | Purescript Integration Plugin #3

Open bySabi opened 3 years ago

bySabi commented 3 years ago

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.

jonasbuntinx commented 3 years ago

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?

bySabi commented 3 years ago

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

jonasbuntinx commented 3 years ago

Thanks, I'll have a look.

idfunctor commented 3 years ago

@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!!!

jonasbuntinx commented 3 years ago

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