Skip to content

Commit 4de0d20

Browse files
authored
Meta: Move the minified WordPress to the new @wp-playground/wordpress-builds package (WordPress#1343)
Moves the minified WordPress `.zip` files to to the new `@wp-playground/wordpress-builds` package to: * Avoid importing a large package when you're only interested in WordPress rewrite rules * Avoid importing from `.zip?url` packages on CLI code build paths as Bun cannot handle them when bundling ## Testing instructions * Confirm all the tests pass
1 parent c5c206b commit 4de0d20

File tree

18,304 files changed

+1584962
-4228944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

18,304 files changed

+1584962
-4228944
lines changed

.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ packages/php-wasm/web/public
44
packages/php-wasm/compile/php
55
packages/playground/compile-wordpress/build-assets
66
__pycache__
7-
packages/playground/wordpress/src/wordpress
8-
packages/playground/wordpress/public
7+
packages/playground/wordpress-builds/src/wordpress
8+
packages/playground/wordpress-builds/public
99
packages/playground/sync/src/test/wp-*
1010
packages/php-wasm/node/src/test/__test*
1111
*.timestamp-1678999213403.mjs

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ packages/php-wasm/web/public/light/ linguist-generated=true -diff
1010
packages/playground/sync/src/test/wp-* linguist-generated=true
1111
packages/playground/remote/public/wp-* linguist-generated=true -diff
1212
packages/playground/remote/src/wordpress linguist-generated=true -diff
13-
packages/playground/wordpress/src/wordpress linguist-generated=true -diff
14-
packages/playground/wordpress/src/public linguist-generated=true -diff
13+
packages/playground/wordpress-builds/src/wordpress linguist-generated=true -diff
14+
packages/playground/wordpress-builds/src/public linguist-generated=true -diff
1515
packages/playground/blueprints/public/ linguist-generated=true

.github/workflows/refresh-wordpress-major-and-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
shell: bash
3939
env:
4040
FORCE_REBUILD: ${{ github.event.inputs.force_rebuild }}
41-
run: npx nx bundle-wordpress:major-and-beta playground-wordpress
41+
run: npx nx bundle-wordpress:major-and-beta playground-wordpress-builds
4242
- name: Check for uncommitted changes
4343
id: changes
4444
run: |

.github/workflows/refresh-wordpress-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: ./.github/actions/prepare-playground
3030
- name: 'Recompile WordPress'
3131
shell: bash
32-
run: npx nx bundle-wordpress:nightly playground-wordpress
32+
run: npx nx bundle-wordpress:nightly playground-wordpress-builds
3333
- name: Config git user
3434
run: |
3535
git config --global user.name "deployment_bot"

.nxignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ dist
33
packages/php-wasm/node/public
44
packages/php-wasm/web/public
55
packages/php-wasm/compile/php
6-
packages/playground/wordpress/build
6+
packages/playground/wordpress-builds/build
77
packages/playground/compile-wordpress/build-assets
88
__pycache__
9-
packages/playground/wordpress/src/wordpress
10-
packages/playground/wordpress/public
9+
packages/playground/wordpress-builds/src/wordpress
10+
packages/playground/wordpress-builds/public
1111
packages/php-wasm/node/src/test/__test*
1212
*.timestamp-1678999213403.mjs
1313
.local

.prettierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/packages/php-wasm/node/public
66
/packages/php-wasm/web/public
77
/packages/php-wasm/compile/build-assets
8-
/packages/playground/wordpress/build/build-assets
9-
/packages/playground/wordpress/src/wordpress
10-
/packages/playground/wordpress/public/
8+
/packages/playground/wordpress-builds/build/build-assets
9+
/packages/playground/wordpress-builds/src/wordpress
10+
/packages/playground/wordpress-builds/public/
1111
/packages/php-wasm/node/src/test/__test*
1212
__pycache__
1313
*.timestamp-1678999213403.mjs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ And here's a few more interesting CLI commands you can run in this repo:
111111
npx nx start php-wasm-cli
112112

113113
# Build latest WordPress releases
114-
npx nx bundle-wordpress:all playground-wordpress
114+
npx nx bundle-wordpress:all playground-wordpress-builds
115115

116116
# Recompile PHP 5.6 - 8.2 releases to .wasm for web
117117
npx nx recompile-php:all php-wasm-web

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docs/site/docs/11-architecture/17-browser-wordpress.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ The [web bundler Dockerfile](https://github.com/WordPress/wordpress-playground/b
77
- Runs the WordPress installation wizard.
88
- Bundles WordPress as a [data dependency](./06-wasm-php-data-dependencies.md)
99

10-
Build a new bundle with `nx bundle-wordpress playground-wordpress --wp-version=<version>`, e.g.:
10+
Build a new bundle with `nx bundle-wordpress playground-wordpress-builds --wp-version=<version>`, e.g.:
1111

1212
```
13-
nx bundle-wordpress playground-wordpress --wp-version=6.1
13+
nx bundle-wordpress playground-wordpress-builds --wp-version=6.1
1414
```
1515

1616
The bundler outputs:
1717

18-
- `packages/playground/wordpress/public/wp-6.1.zip` – zipped WordPress files
19-
- `packages/playground/wordpress/public/wp-6.1/` – a directory with static assets for the specified WordPress versions
18+
- `packages/playground/wordpress-builds/public/wp-6.1.zip` – zipped WordPress files
19+
- `packages/playground/wordpress-builds/public/wp-6.1/` – a directory with static assets for the specified WordPress versions
2020

2121
Consult [the web bundler Dockerfile](https://github.com/WordPress/wordpress-playground/blob/trunk/src/wordpress-playground/wordpress/Dockerfile) for more details (like the list of supported WordPress versions) and modify it to customize the default WordPress installation.

0 commit comments

Comments
 (0)