-
Notifications
You must be signed in to change notification settings - Fork 100
/
package.json
40 lines (40 loc) · 1.4 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
{
"name": "wporg-learn-dev",
"version": "1.0.0",
"description": "Local development tools for learn.wordpress.org",
"author": "WordPress.org",
"license": "GPL-2.0-or-later",
"private": true,
"dependencies": {
"@wordpress/env": "9.3.0",
"@wordpress/scripts": "27.9.0",
"@wordpress/stylelint-config": "21.34.0"
},
"workspaces": {
"packages": [
"wp-content/mu-plugins/pub/locale-switcher",
"wp-content/plugins/wporg-learn",
"wp-content/themes/pub/wporg-learn-2024"
],
"nohoist": [
"**/grunt-*"
]
},
"scripts": {
"build": "yarn workspace wporg-locale-switcher build && yarn workspace wporg-learn-2024 build && yarn workspace wporg-learn-plugin build",
"create": "composer install && yarn setup:tools && yarn build && yarn run install:env",
"format:php": "composer run format",
"install:env": "./bin/index.sh",
"install:githooks": "mv .git/hooks .git/hooks_orig && ln -s ../.githooks .git/hooks",
"lint": "yarn lint:css && yarn lint:js && yarn lint:php",
"lint:css": "yarn workspaces run lint:css",
"lint:js": "yarn workspaces run lint:js",
"lint:php": "composer run lint",
"setup:tools": "TEXTDOMAIN=wporg-learn composer exec update-configs",
"start:locale-switcher": "yarn workspace wporg-locale-switcher start",
"start:plugin": "yarn workspace wporg-learn-plugin start",
"start:theme": "yarn workspace wporg-learn-2024 start",
"wp-env": "wp-env"
},
"main": "index.js"
}