pphlx 1.0.0 → 1.0.1
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.
- package/README.md +26 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
# PPHLX Compiler
|
|
1
|
+
# PPHLX Compiler
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Official Node.js CLI for **PPHLX**, a high-performance component compiler that transforms modern component-based layouts into production-ready PHP applications.
|
|
8
|
+
|
|
9
|
+
Powered by a Go-compiled WebAssembly (WASI) runtime, PPHLX runs consistently on Windows, macOS, and Linux without requiring native compiler installations.
|
|
6
10
|
|
|
7
11
|
---
|
|
8
12
|
|
|
@@ -13,7 +17,21 @@ Install the package locally in your project:
|
|
|
13
17
|
npm install pphlx
|
|
14
18
|
```
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
Initialize a new PPHLX project configuration:
|
|
25
|
+
```bash
|
|
26
|
+
npx pphlx init
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Start the local development and watch server:
|
|
30
|
+
```bash
|
|
31
|
+
npx pphlx dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Build your project into pure, production-ready `.php` files:
|
|
17
35
|
```bash
|
|
18
36
|
npx pphlx build
|
|
19
37
|
```
|
|
@@ -25,12 +43,12 @@ npx pphlx build
|
|
|
25
43
|
PPHLX uses a configuration file (`pphlx.config.json` or `pphlx.config.mjs`) in the root of your project directory.
|
|
26
44
|
|
|
27
45
|
### Scripts
|
|
28
|
-
Add
|
|
46
|
+
Add build and development trigger scripts to your `package.json`:
|
|
29
47
|
```json
|
|
30
48
|
{
|
|
31
49
|
"scripts": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
50
|
+
"dev": "pphlx dev",
|
|
51
|
+
"build": "pphlx build"
|
|
34
52
|
}
|
|
35
53
|
}
|
|
36
54
|
```
|
|
@@ -39,4 +57,4 @@ Then run:
|
|
|
39
57
|
```bash
|
|
40
58
|
npm run build
|
|
41
59
|
```
|
|
42
|
-
This compiles your layout and components into
|
|
60
|
+
This compiles your layout and components into standalone `.php` files inside your output directory.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pphlx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "High-performance Monolithic Web Compiler and PHP Hydration CLI",
|
|
5
5
|
"main": "bin/pphlx.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"pphlx": "
|
|
7
|
+
"pphlx": "bin/pphlx.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|