-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
45 lines (45 loc) · 2.24 KB
/
Copy pathpackage.json
File metadata and controls
45 lines (45 loc) · 2.24 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
37
38
39
40
41
42
43
44
45
{
"name": "wpvdb-blocks",
"version": "0.1.0",
"description": "Editorial blocks powered by WPVDB Search.",
"author": "Automattic, Ramon Corrales",
"license": "GPL-2.0-or-later",
"homepage": "https://github.com/Automattic/wpvdb-blocks",
"repository": {
"type": "git",
"url": "git+https://github.com/Automattic/wpvdb-blocks.git"
},
"bugs": {
"url": "https://github.com/Automattic/wpvdb-blocks/issues"
},
"private": true,
"scripts": {
"build": "wp-scripts build --webpack-copy-php --blocks-manifest",
"start": "wp-scripts start --webpack-copy-php --blocks-manifest",
"pot": "wp i18n make-pot . languages/wpvdb-blocks.pot --domain=wpvdb-blocks --exclude=build,node_modules,release,vendor --headers='{\"POT-Creation-Date\":\"\"}'",
"i18n": "bun run pot && for po in languages/wpvdb-blocks-*.po; do [ -e \"$po\" ] || continue; msgmerge --update --backup=none \"$po\" languages/wpvdb-blocks.pot; perl -0pi -e 's/POT-Creation-Date: [^\\\\]*\\\\n/POT-Creation-Date: \\\\n/g' \"$po\"; msgfmt --check \"$po\" -o \"${po%.po}.mo\"; done && bun run i18n:map && bun run i18n:json",
"i18n:map": "node scripts/generate-i18n-source-map.mjs",
"i18n:json": "wp i18n make-json languages languages --pretty-print --no-purge --use-map=languages/source-map.json",
"lint": "bun run lint:js && bun run lint:scss && bun run lint:php",
"lint:js": "wp-scripts lint-js 'src/**/*.{js,jsx}' 'scripts/**/*.js' 'scripts/**/*.mjs'",
"lint:js:staged": "wp-scripts lint-js",
"lint:scss": "wp-scripts lint-style 'src/**/*.scss' --customSyntax postcss-scss",
"lint:scss:staged": "wp-scripts lint-style --customSyntax postcss-scss",
"lint:php": "composer lint",
"analyze": "composer analyze",
"test": "composer test && wp-scripts test-unit-js",
"fix": "bun run fix:js && bun run fix:scss",
"fix:js": "wp-scripts lint-js --fix 'src/**/*.{js,jsx}' 'scripts/**/*.js' 'scripts/**/*.mjs'",
"fix:scss": "wp-scripts lint-style 'src/**/*.scss' --customSyntax postcss-scss --fix"
},
"devDependencies": {
"@wordpress/api-fetch": "^7.46.0",
"@wordpress/block-editor": "^15.19.0",
"@wordpress/blocks": "^15.19.0",
"@wordpress/components": "^33.1.0",
"@wordpress/element": "^6.46.0",
"@wordpress/i18n": "^6.19.0",
"@wordpress/scripts": "^32.0.0",
"@wordpress/url": "^4.46.0"
}
}