My Plugin
Template for monolithic WordPress plugin built with SvelteKit : shortcode and admin panel included
by Jules Luzy-Riopel · github.com/lolcabanon/wp-sk-template · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lolcabanon/wp-sk-template/archive/refs/heads/main.zipReadme
Hey, I should probably take the time to write something meaningful here. Not now tho.
Quick overview
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.
Includes
- One WordPress shortcode (
./client) - One WordPress admin panel (
./admin) - SCSS
- Some config
- Lot of fun (not guaranteed)
Workflows
Get going
- 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
Build and deploy
pnpm wrap:prod(will build automatically)- Install, activate and... hope for the best?
Bump version
Root
Inside root : pn version patch && pn wrap:prod
Client
Inside client : pn version patch
Admin
Inside admin : pn version patch
Launch DEV servers
From root, pn dev will launch both projects in parallel.