@forgewp/compiler 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +38 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @forgewp/compiler ⚙️
2
+
3
+ The core engine of the ForgeWP ecosystem. It transforms modern React applications into standards-compliant WordPress themes.
4
+
5
+ ## 📦 Features
6
+
7
+ ### 1. Theme Export
8
+ Compiles your React components into `header.php`, `footer.php`, and `index.php`. It automatically:
9
+ - Resolves asset paths.
10
+ - Injects standard WordPress PHP hooks (`wp_head()`, `wp_footer()`).
11
+ - Replaces relative links with dynamic WordPress routing (`home_url()`).
12
+
13
+ ```bash
14
+ pnpm export
15
+ ```
16
+
17
+ ### 2. Smart Component Adder
18
+ A powerful utility that pulls components from the ForgeWP Registry or shadcn/ui and applies the signature **Sharpness Transformer**.
19
+
20
+ ```bash
21
+ pnpm forgewp:add button
22
+ ```
23
+
24
+ ## 🔌 Configuration
25
+
26
+ ForgeWP is controlled via `wp.config.ts` in your project root:
27
+
28
+ ```typescript
29
+ export default {
30
+ themeName: "My Sharp Theme",
31
+ slug: "my-sharp-theme",
32
+ style: "forgewp" // or "shadcn"
33
+ };
34
+ ```
35
+
36
+ ---
37
+
38
+ Maintainable, Scalable, WordPress-native.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgewp/compiler",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Compile ForgeWP React themes into installable WordPress themes",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "archiver": "^7.0.1",
23
23
  "jiti": "^2.6.1",
24
24
  "picocolors": "^1.1.1",
25
- "@forgewp/registry": "0.1.1"
25
+ "@forgewp/registry": "0.1.2"
26
26
  }
27
27
  }