-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
44 lines (44 loc) · 2.02 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
{
"name": "vk-dynamic-if-block",
"version": "0.1.0",
"description": "A dynamic block that shows its inner blocks based on specified conditions, such as whether the current page is the front page or a single post.",
"author": "Vektor,Inc.",
"license": "GPL-2.0-or-later",
"scripts": {
"update": "ncu -u && rm -rf node_modules package-lock.json && npm install",
"sass": "sass --no-source-map src/:src/",
"postcss:autoprefix": "npx postcss src/*.css --use autoprefixer -r --no-map",
"postcss:minify": "npx postcss src/*.css --use postcss-minify -d src/ --no-map",
"postcss:all": "npx postcss src/*.css --use autoprefixer postcss-minify -d build/ --no-map",
"rimraf:css": "npx rimraf src/*.css",
"build:css": "run-s sass postcss:all rimraf:css",
"build": "wp-scripts build && webpack --config webpack2.config.js && npm run build:css && cp src/*.php build/",
"format": "wp-scripts format",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start",
"dist": "composer install --optimize-autoloader --prefer-dist --no-dev && npm run copy",
"copy": "mkdir -p dist/vk-dynamic-if-block && cp -r build dist/vk-dynamic-if-block && cp -r vendor dist/vk-dynamic-if-block && find . -maxdepth 1 '(' -name '*.php' -o -name '*.txt' ')' -exec cp '{}' dist/vk-dynamic-if-block/ ';'",
"zip": "npm run dist && cd dist && zip -r vk-dynamic-if-block.zip vk-dynamic-if-block && cd ..",
"wp-env": "wp-env",
"phpunit": "npm run build && composer install && wp-env run tests-cli --env-cwd='wp-content/plugins/vk-dynamic-if-block' vendor/bin/phpunit -c .phpunit.xml --verbose"
},
"dependencies": {
"@wordpress/env": "^10.4.0"
},
"devDependencies": {
"@wordpress/scripts": "^28.4.0",
"compare-versions": "^6.1.1",
"npm-check-updates": "^17.0.3",
"npm-run-all": "^4.1.5",
"postcss-cli": "^11.0.0",
"postcss-minify": "^1.1.0",
"rimraf": "^6.0.1"
},
"volta": {
"node": "20.16.0",
"npm": "10.8.2"
}
}