Skip to content

Monorepo #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 2 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules/**/*
wasm-build/**/*
dist-web/**/*
dist-node/**/*
src/node/wordpress/**/*
node-php.js
build/*
packages/*/build*/*
24 changes: 12 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.DS_Store
.idea
.local
node_modules
package-lock.json
wasm-build/php/docker-output/*
!wasm-build/php/docker-output/.gitkeep
wasm-build/wordpress-data/docker-output/*
!wasm-build/wordpress-data/docker-output/.gitkeep
wasm-build/wordpress-data/preload/wordpress*
dist-web/wp-lazy-files.js
dist-web/service-worker.js
dist-web/wasm-worker.js
dist-web/app.js
dist-web/*.html
dist-web/wp-lazy-files.js

build/*
!build/wp-admin
!build/wp-content
!build/wp-includes
!build/php.wasm
!build/php-web.js
!build/php-webworker.js
!build/wp.data
!build/wp.js
packages/*/build*
packages/*/build*/*
7 changes: 2 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules/**/*
wasm-build/**/*
dist-web/**/*
dist-node/**/*
src/node/wordpress/**/*
node-php.js
build/*
packages/*/build*/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm run build:php:node
## Building custom WordPress bundle

If you'd like to customize the packaged WordPress installation, update
the build script at `wasm-build/wordpress-data/prepare-wordpress.sh`. It generates a bundle called `wp.data`.
the build script at `packages/wordpress-wasm/wordpress/prepare-wordpress.sh`. It generates a bundle called `wp.data`.

For example, before the comment "Prepare WordPress static files":

Expand Down
158 changes: 0 additions & 158 deletions build.js

This file was deleted.

11 changes: 11 additions & 0 deletions build/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
AddType application/wasm .wasm

RewriteEngine on
RewriteRule ^scope:.*?/(.*)$ $1 [NC]

<FilesMatch "iframe-worker.html$">
Header set Origin-Agent-Cluster: ?1
</FilesMatch>

RewriteEngine on
RewriteRule ^plugin-proxy$ plugin-proxy.php [NC]
21 changes: 21 additions & 0 deletions build/php-web.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions build/php-webworker.js

Large diffs are not rendered by default.

Binary file added build/php.wasm
Binary file not shown.
Loading