-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
36 lines (36 loc) · 1.77 KB
/
package.json
File metadata and controls
36 lines (36 loc) · 1.77 KB
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
{
"name": "pickleball-ratings",
"version": "0.5.0",
"description": "Display pickleball player ratings using a customizable block.",
"main": "build/index.js",
"scripts": {
"build": "wp-scripts build && php bin/build-svg-assets.php",
"format": "wp-scripts format && npm run format:php",
"format:php": "composer run phpcbf",
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:php": "composer run phpcs",
"test:clean": "rm -rf /tmp/wordpress /tmp/wordpress-tests-lib /tmp/wp-latest.json",
"test:setup": "npm run test:clean && yes | WP_TESTS_DIR=/tmp/wordpress-tests-lib WP_CORE_DIR=/tmp/wordpress bin/install-wp-tests.sh wp_test root '' localhost latest",
"test": "npm run build && WP_TESTS_DIR=/tmp/wordpress-tests-lib vendor/bin/phpunit --testdox",
"packages-update": "wp-scripts packages-update",
"clean": "rm -rf build/*",
"plugin-zip": "npm run plugin-zip:production",
"plugin-zip:production": "npm run clean && npm run lint && npm test && npm run build && wp-scripts plugin-zip && npm run plugin-zip:add-images && npm run plugin-zip:verify",
"plugin-zip:add-images": "mkdir -p temp-plugin && unzip pickleball-ratings.zip -d temp-plugin && cp -r images temp-plugin/ && cd temp-plugin && zip -r ../pickleball-ratings.zip . && cd .. && rm -rf temp-plugin",
"plugin-zip:verify": "unzip -t pickleball-ratings.zip > /dev/null && echo '✅ ZIP file is valid'",
"start": "wp-scripts start"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@wordpress/scripts": "^26.19.0"
},
"dependencies": {
"@wordpress/block-editor": "^12.15.0",
"@wordpress/blocks": "^12.29.0",
"@wordpress/components": "^25.13.0",
"@wordpress/element": "^5.29.0",
"@wordpress/i18n": "^4.47.0"
}
}