Hey, I should probably take the time to write something meaningful here. Not now tho.
This is a template project to kickstart the making of simple WordPress plugins with SvelteKit. I made it mostly for myself, but sharing is caring, so here we are.
Please raise an issue or discussion is you try to use this and fail... But maybe just try a litte bit more before?
Ohh, and, I use Arch btw (Manjaro ackchyually). Reminder, I built this for me. YMMV.
- One WordPress shortcode (
./client) - One WordPress admin panel (
./admin) - SCSS
- Some config
- Lot of fun (not guaranteed)
- Clone the repo
- Change every
my-plugin,my_plugin,My Plugin, ... - While you're at it, have a read
- Change prod host in
sharedConfig.js pnpm install && cd ./client && pnpm install && cd ../admin && pnpm installpnpm dev(from root or client or admin)- Write some code
pnpm wrap:prod(will build automatically)- Install, activate and... hope for the best?
Inside root : pn version patch && pn wrap:prod
Inside client : pn version patch
Inside admin : pn version patch
From root, pn dev will launch both projects in parallel.