Skip to content

feat: auto-bundle WordPress plugin zip in dist folder - #127

Merged
jackgranatowski merged 1 commit into
mainfrom
feat/auto-zip-plugin
May 27, 2026
Merged

feat: auto-bundle WordPress plugin zip in dist folder#127
jackgranatowski merged 1 commit into
mainfrom
feat/auto-zip-plugin

Conversation

@kiro-agent

@kiro-agent kiro-agent Bot commented May 27, 2026

Copy link
Copy Markdown

This pull request was created by @kiro-agent on behalf of @jackgranatowski 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


Summary

Adds automatic packaging of the "SLASHED for Bricks" WordPress plugin into a distributable zip (dist/slashed-bricks.zip) as part of the standard build.

Changes

  • scripts/zip-plugin.js — New script that stages the plugin files into a slashed-bricks/ directory and produces a zip. Uses system zip when available, with a pure Node.js fallback (no extra dependencies). Excludes dev source dirs (admin-app/, editor-app/).
  • package.json — Added build:plugin script for standalone use; appended zip-plugin.js to the main build chain so it runs automatically after CSS bundling + inventory generation.
  • .github/workflows/release.yml — Added dist/slashed-bricks.zip to the GitHub Release asset list.

What's in the zip

slashed-bricks/
  slashed-bricks.php
  README.md
  includes/   (16 PHP classes)
  assets/     (pre-built admin/editor JS+CSS)
  data/       (fallback inventory.json)

Testing

  • Ran npm run build end-to-end — zip produced at 127.7 kB
  • Verified zip structure with unzip -l — correct top-level slashed-bricks/ directory with all expected files

Co-authored-by: Jack Granatowski <contact@codeslash.net>
@jackgranatowski
jackgranatowski merged commit 90501a9 into main May 27, 2026
4 checks passed
jackgranatowski pushed a commit that referenced this pull request May 27, 2026
PR #127 wired zip-plugin.js into the build chain but didn't commit the
generated dist/slashed-bricks.zip artifact (required by release.yml).
Also refreshes the ten .min.css.map files whose sources changed in
PRs #125#126 but whose built output was never re-committed.

https://claude.ai/code/session_01CkF1n21vhFAfscxSarXuCD
@jackgranatowski
jackgranatowski deleted the feat/auto-zip-plugin branch May 31, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants