Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
065c11f
Migrate to NX-based build
adamziel Mar 16, 2023
b795ef2
Rename @wordpress scope to @wp-playground
adamziel Mar 16, 2023
8ccc7d9
Cover the nx commands in the docs instead of the yarn commands
adamziel Mar 16, 2023
6ec5585
Setup the main branch for the CI workflow
adamziel Mar 16, 2023
c166286
Regenerate API docs
adamziel Mar 16, 2023
df3c609
Adjust workflow to yarn
adamziel Mar 16, 2023
1d2e60f
Update docs
adamziel Mar 16, 2023
4039b03
Update docs
adamziel Mar 16, 2023
502da4a
Polish documentation site generation
adamziel Mar 16, 2023
b5f8f5d
Restore wp files
adamziel Mar 16, 2023
418a1bf
Polish the build process
adamziel Mar 16, 2023
baf489c
Add .nxignore
adamziel Mar 16, 2023
35e47e5
Ignore more files
adamziel Mar 16, 2023
bf05ef5
Apply formatting
adamziel Mar 16, 2023
0420765
Add dev server port
adamziel Mar 16, 2023
a58cb65
Ignore vite timestamp files
adamziel Mar 16, 2023
ec20814
Setup a dependenby between website and remote
adamziel Mar 16, 2023
4427eb1
Get the workers to work in Firefox again (async iframe creation)
adamziel Mar 16, 2023
32f87cd
Format
adamziel Mar 16, 2023
94c0fe0
Format
adamziel Mar 16, 2023
c982260
merge .htaccess for wasm.wordpress.net
adamziel Mar 16, 2023
4b8e0ee
Improve task dependencies
adamziel Mar 16, 2023
e461965
Remove .vscode
adamziel Mar 16, 2023
4879c39
Improve the doc site build pipeline
adamziel Mar 16, 2023
6214bf0
One more tweak to the pipeline
adamziel Mar 16, 2023
2b09957
Add docs-ts-api-doc-generator to implicit dependencies
adamziel Mar 16, 2023
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
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
14 changes: 10 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
node_modules/**/*
build/*
packages/*/build*/*
src/php-wasm/wasm/build-assets/*
node_modules
packages/php-wasm/node/public
packages/php-wasm/web/public
packages/php-wasm/compile/build-assets
packages/playground/compile-wordpress/build-assets
__pycache__
packages/playground/remote/src/wordpress
*.timestamp-1678999213403.mjs
.local
.vscode
46 changes: 0 additions & 46 deletions .eslintrc.js

This file was deleted.

51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": []
}
],
"no-inner-declarations": 0,
"no-use-before-define": "off",
"react/prop-types": 0,
"no-console": 0,
"no-empty": 0,
"no-async-promise-executor": 0,
"no-constant-condition": 0,
"no-nested-ternary": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"no-constant-condition": 0
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
},
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {}
}
]
}
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
push:
branches:
- trunk
pull_request:

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'trunk'
- run: npm install -g yarn nx
- run: yarn install --frozen-lockfile

- run: nx format:check
- run: nx affected --target=lint --parallel=3
# No test setup yet
# - run: nx affected --target=test --parallel=3 --configuration=ci
- run: nx affected --target=build --parallel=3
74 changes: 45 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
.DS_Store
.idea
.local
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist
tmp
var
/out-tsc
.vitepress
.vite
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.rollup.cache
__pycache__

# dependencies
node_modules
/live-code-example
/testwp
package-lock.json
packages/*/build
testwp
!build/wp-admin
!build/wp-content
!build/wp-includes
!build/php.wasm
!build/php.js
!build/wp.data
!build/wp.js
*.tsbuildinfo
*.d.ts
tsdoc-metadata.json
var
dist.zip

# IDEs and editors
/.idea
/.local
.vscode
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
*.timestamp-1678999213403.mjs

# System Files
.DS_Store
Thumbs.db

# Playground artifacts
php.js.bak
11 changes: 11 additions & 0 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
packages/php-wasm/node/public
packages/php-wasm/web/public
packages/php-wasm/compile/build-assets
packages/playground/compile-wordpress/build-assets
__pycache__
packages/playground/remote/src/wordpress
*.timestamp-1678999213403.mjs
.local
.vscode
16 changes: 13 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
node_modules/**/*
build/*
packages/*/build*/*
# Add files here to ignore them from prettier formatting
/dist
/coverage
/node_modules
/packages/php-wasm/node/public
/packages/php-wasm/web/public
/packages/php-wasm/compile/build-assets
/packages/playground/compile-wordpress/build-assets
/packages/playground/remote/src/wordpress
__pycache__
*.timestamp-1678999213403.mjs
.local
.vscode
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": true,
"semi": true,
"singleQuote": true
}
8 changes: 0 additions & 8 deletions .prettierrc.json

This file was deleted.

7 changes: 3 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ version: 2
# python: "3.10"

mkdocs:
configuration: mkdocs.yml
configuration: mkdocs.yml

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt

install:
- requirements: docs/requirements.txt
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.4.1.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WordPress Playground

[Project Page](https://developer.wordpress.org/playground/) | [Live demo](https://wasm.wordpress.net/wordpress.html) | [Documentation and API Reference](https://wordpresswasm.readthedocs.io/en/latest/)
[Project Page](https://developer.wordpress.org/playground/) | [Live demo](https://wasm.wordpress.net/wordpress.html) | [Documentation and API Reference](https://wordpresswasm.readthedocs.io/en/latest/)

[WordPress Playground](https://github.com/WordPress/wordpress-playground) is an experimental in-browser WordPress that runs without a PHP server thanks to the magic of WebAssembly.

Expand Down Expand Up @@ -34,8 +34,6 @@ npm install -g yarn
git clone https://github.com/WordPress/wordpress-playground
cd wordpress-playground
yarn install
# An initial build is needed at the moment:
yarn run build
yarn run dev
```

Expand Down
6 changes: 0 additions & 6 deletions bin/build-api-docs.sh

This file was deleted.

Loading