So I started gathering info and trying out what other people were doing for similar problems in the modern web dev ecosystem and this is what I came up with.
The solution I found to be easiest to get up and running with and to be extensible with other P5 libraries (like p5.sound for instance) without additional modifications was by cloning ardelta’s p5-typescript-starter repo.
Reasons I like it:
- it just works, run
- easy to port to production anywhere -
npm buildthen take the output artifacts and use them anywhere
- dev mode is fast and features hot reloading right out of the box
Overall, it’s just an extremely practical way to get coding with p5js and Typescript.
If you have a different workflow / project setup, I’d love to hear about it! I’m always in the market for a better dev experience so lmk below or shoot me a message.