wp-sk-template Svelte Themes

Wp Sk Template

Template for monolithic WordPress plugin built with SvelteKit : shortcode and admin panel included

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

  1. Clone the repo
  2. Change every my-plugin, my_plugin, My Plugin, ...
  3. While you're at it, have a read
  4. Change prod host in sharedConfig.js
  5. pnpm install && cd ./client && pnpm install && cd ../admin && pnpm install
  6. pnpm dev (from root or client or admin)
  7. Write some code

Build and deploy

  1. pnpm wrap:prod (will build automatically)
  2. 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.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes