-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add TypeScript to the frontend #331
Comments
French updates aside, you can see a summary of the typescript update here: master...l-etabli:main |
HI @fabienheureux, thanks for showing interest in Pipit and I hope it suits your needs, otherwise feedback are much welcome :) Regarding Typescript, its a tricky subject for us, we have discussed it internally a few times at Fröjd (the agency that does most of the development of this boilerplate) but have so far decided to keep using JS, mainly because we feel that it complicates our types of project. Nothing is set in stone and we will continue to revisit this question in the future. When it comes to the frontend/Next.js part of this project, we have a goal to port it to a So for now, lets keep this issue open as a reference to others that wish to use Typescript + Pipit. If you have other ideas, issues is a good way to go, you can otherwise find us for discussion at the Wagtail Slack under channel #pipit |
Thanks for your reply ! Moving the frontend out of the project could be a great idea !
About typescript, I usually use a very basic implementation and don't necessarily write my own types, but having all the TS ecosystem (autocompletion, typing, etc) help to maintain a better code quality in my opinion. I will come to the wagtail channel in order to discuss these ideas... |
I noticed that @fabienheureux previous link has stopped working, so I'm just posting a new link here to the new repo where anyone curious in using Typescript + Pipit can take a look and find inspiration: https://github.com/l-etabli/wagtail-debut (And just to reiterate, we don't have a Typescript port in our roadmap, but its not too difficult to migrate to typescript) |
Hi @marteinn, thanks for the link ! For future reference, here is the approach I used to get TS in Pipit
|
Thanks for clarifying @fabienheureux and for the awesome links! |
👋
First of all thanks for this project, it seems nicely done (I did not have a lot of time to play with yet).
The move to typescript would be quite easy.
Would you be open to migrate to typescript for the frontend part ?
I could open a PR if you like.
Edit & TLDR: it won't be implemented soon, but I have written a comment below explaining how to add TypeScript to Wagtail-Pipit: #331 (comment)
Also: I forked Pipit to add some ideas of mine, and I added TS in the process. You can see this here: https://github.com/l-etabli/wagtail-debut
The text was updated successfully, but these errors were encountered: