Skip to content

Commit 576cfa9

Browse files
mho22bgrgicak
andauthored
Update .agents/skills/compile-php-wasm/SKILL.md
Co-authored-by: Bero <berislav.grgicak@gmail.com>
1 parent 436878a commit 576cfa9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.agents/skills/compile-php-wasm/SKILL.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,32 @@ modules in the WordPress Playground repository.
1313
## Quick Reference
1414

1515
```bash
16-
# Recompile main module — specific version + platform + mode
16+
```bash
17+
# Recompile a specific version for ALL platforms and modes (web+node, jspi+asyncify)
18+
npx nx recompile-php:all php-wasm-web -- --PHP_VERSION=8.5
19+
npx nx recompile-php:all php-wasm-node -- --PHP_VERSION=8.5
20+
21+
# Recompile a specific version + platform + single mode
1722
npx nx recompile-php:jspi php-wasm-web -- --PHP_VERSION=8.5
23+
npx nx recompile-php:asyncify php-wasm-web -- --PHP_VERSION=8.5
24+
npx nx recompile-php:jspi php-wasm-node -- --PHP_VERSION=8.5
1825
npx nx recompile-php:asyncify php-wasm-node -- --PHP_VERSION=8.5
1926
2027
# Recompile all PHP versions for a platform
2128
npm run recompile:php:web
2229
npm run recompile:php:node
2330
2431
# Debug build (DWARF info)
32+
npx nx recompile-php:all php-wasm-web -- --WITH_DEBUG=yes
2533
npx nx recompile-php:all php-wasm-node -- --WITH_DEBUG=yes
2634
2735
# Source maps
36+
npx nx recompile-php:all php-wasm-web -- --WITH_SOURCEMAPS=yes
2837
npx nx recompile-php:all php-wasm-node -- --WITH_SOURCEMAPS=yes
2938
3039
# Reset caches before rebuilding
3140
node node_modules/.bin/nx reset
3241
docker rmi php-wasm:latest
33-
```
3442
3543
## Build Pipeline Overview
3644

0 commit comments

Comments
 (0)