Implement NPM/Yarn packages into a plugin

Hello Discourse Developers,

I’m currently working on developing a plugin for Discourse and would like to incorporate some external libraries via NPM/Yarn. I’m looking for guidance on the best practices and steps to successfully integrate these packages into my plugin. Mostly, I’m focused on integrating @pcd/zuauth

My Starting Point

Plugin Structure: I’ve set up the basic structure of my plugin using the Sign-In with Ethereum for Discourse since im creating an auth plugin.

Threads I Consulted

I consulted these threads as references for implementing NPM libraries, but they didn’t help much:

2 Likes

Another threads consulted:

2 Likes