forked from WordPress/wporg-main-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
35 lines (35 loc) · 1.68 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
{
"name": "wporg-main-2022",
"version": "1.0.0",
"description": "The codebase and development environment for the main wordpress.org site.",
"author": "WordPress.org",
"license": "GPL-2.0-or-later",
"private": true,
"devDependencies": {
"@wordpress/env": "5.8.0",
"@wordpress/scripts": "25.0.0",
"backstopjs": "^6.1.4",
"lighthouse-ci": "^1.13.1"
},
"scripts": {
"setup:tools": "TEXTDOMAIN=wporg composer exec update-configs",
"setup:wp": "wp-env run cli \"bash env/setup.sh\" && ./env/refresh.sh",
"setup:refresh": "./env/refresh.sh",
"update:tools": "composer update && TEXTDOMAIN=wporg composer exec update-configs",
"wp-env": "wp-env",
"backstop:reference": "npm exec backstop reference",
"backstop:test": "npm exec backstop test",
"lighthouse": "lighthouse-ci http://localhost:8888/ --accessibility=100 --best-practices=100 --seo=100",
"lighthouse:desktop": "lighthouse http://localhost:8888/ --view --preset=desktop --output-path=lighthouse.html",
"lighthouse:mobile": "lighthouse http://localhost:8888/ --view --screenEmulation.mobile --output-path=lighthouse.html",
"build:patterns": "./env/build-patterns.sh",
"build:theme": "yarn workspace wporg-main-2022-theme build",
"lint:frontend": "yarn workspace wporg-main-2022-theme lint:css && yarn workspace wporg-main-2022-theme lint:js",
"lint:php": "composer run lint source/wp-content/themes/wporg-main-2022 source/wp-content/mu-plugins/theme-switcher.php env",
"start:theme": "yarn workspace wporg-main-2022-theme start",
"test:php": "wp-env run phpunit 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/tests/phpunit/phpunit.xml --verbose'"
},
"workspaces": [
"source/wp-content/themes/wporg-main-2022"
]
}