forked from WordPress/wordpress-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
64 lines (64 loc) · 2.77 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "wasm-wordpress",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "npm run dev:web",
"dev:web": "npm-run-all --parallel dev:web:*",
"dev:web:app": "npm run build:web:app -- --watch",
"dev:web:html": "chokidar --initial --silent \"./src/web/*.html\" -c \"cp src/web/*.html dist-web/\"",
"dev:web:serve": "node liveServer.js",
"dev:node": "node ./src/node/command.mjs",
"build": "npm run build:web",
"build:wpnet": "SERVICE_WORKER_ORIGIN=https://wasm.wordpress.net WASM_WORKER_ORIGIN=https://wasm-worker.wordpress.net npm run build:web",
"build:web": "npm-run-all --parallel build:web:*",
"build:web:app": "node build.js --platform=browser",
"build:web:html": "cp src/web/*.html dist-web/",
"build:php": "npm-run-all build:php:*",
"build:php:web": "cd wasm-build/php && bash web-build-wasm.sh && bash web-publish.sh",
"build:php:node": "cd wasm-build/php && bash node-build-wasm.sh && bash node-publish.sh",
"build:wp": "cd wasm-build/wordpress-data && bash prepare-wordpress.sh && bash bundle-data.sh && bash web-publish.sh && bash node-publish.sh",
"build:app": "npm-run-all build:web build:node",
"build:node": "rm -rf dist-node/* && node build.js --platform=node && perl -pi.bak -e 's/\\.\\.\\/shared\\///g' dist-node/index.mjs && perl -pi.bak -e 's/\\.\\.\\/src\\/node\\//.\\//g' dist-node/index.mjs && cp -r src/node/node-php.* src/node/base64-encoded-database src/node/wordpress src/node/etc dist-node/ && rm dist-node/*.bak",
"clean": "npm-run-all --parallel clean:*",
"clean:php": "rm -rf dist-web/wasm-build/php/docker-output/*",
"clean:wp": "rm -rf dist-web/wasm-build/wordpress/docker-output/* dist-web/wasm-build/wordpress/preload/*",
"format": "prettier --write src",
"lint:js": "eslint \"./src/**/*.{js,mjs,ts}\"",
"lint:js:fix": "npm run lint:js -- --fix",
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
},
"lint-staged": {
"src/**/*": [
"npx prettier --write --ignore-unknown",
"npx eslint --fix"
]
},
"author": "Adam Zielinski",
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.0",
"cookie-parser": "^1.4.6",
"express": "^4.18.1",
"xmlhttprequest": "^1.8.0",
"yargs": "^17.5.1"
},
"devDependencies": {
"@wordpress/eslint-plugin": "^13.0.0",
"chokidar-cli": "^3.0.0",
"esbuild": "^0.15.5",
"eslint": "8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"live-server": "^1.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1"
}
}