next-purescript-example
next-purescript-example copied to clipboard
[suggestion] Next.js | Purescript Integration Plugin
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.
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?
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
Thanks, I'll have a look.
@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 Thanks, I'm really glad this example turned out to be useful to people and is able to spread the use of PureScript.