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:
npm buildthen take the output artifacts and use them anywhere
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.
Hi I'm Hamilton and I wrote / built this! I like doing lots of things, but mostly I like to build (and then share those buildings). Some things I'm currently building: art, software, and prose. To stay up-to-date with my latest buildings, subscribe to my email list or follow one of my many other accounts. #buildit #shipit #justhamit