Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 5.09 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 5.09 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "project-name-features",
"version": "1.0.0",
"description": "Starter plugin for rtCamp WordPress projects.",
"private": true,
"author": "rtCamp",
"license": "GPL-2.0-or-later",
"keywords": [
"rtcamp",
"wp-plugin",
"feature-plugin"
],
"homepage": "https://github.com/rtCamp/plugin-elementary#readme",
"repository": {
"type": "git",
"url": "https://github.com/rtCamp/plugin-elementary.git"
},
"bugs": {
"url": "https://github.com/rtCamp/plugin-elementary/issues"
},
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
},
"devDependencies": {
"@babel/core": "7.29.7",
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
"@rtcamp/eslint-config": "^1.1.0",
"@rtcamp/stylelint-config": "^1.1.0",
"@rtcamp/wp-tooling": "^2.0.0",
"@wordpress/babel-preset-default": "8.47.0",
"@wordpress/block-editor": "18.0.0",
"@wordpress/blocks": "16.1.0",
"@wordpress/browserslist-config": "6.56.0",
"@wordpress/env": "11.16.0",
"@wordpress/eslint-plugin": "25.4.1",
"@wordpress/i18n": "6.25.0",
"@wordpress/interactivity": "6.56.0",
"@wordpress/scripts": "36.0.0",
"@wordpress/server-side-render": "6.28.0",
"browser-sync": "3.0.4",
"browser-sync-webpack-plugin": "2.4.0",
"browserslist": "4.29.2",
"cross-env": "10.1.0",
"css-minimizer-webpack-plugin": "8.0.0",
"dotenv": "18.0.4",
"eslint": "10.5.0",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-jest": "29.15.2",
"jest": "30.5.0",
"jest-environment-jsdom": "30.5.0",
"jest-silent-reporter": "0.6.0",
"lint-staged": "16.1.6",
"npm-run-all": "4.1.5",
"webpack-remove-empty-scripts": "1.1.1"
},
"overrides": {
"webpack-dev-server": "5.2.6",
"@babel/core": "7.29.7",
"express": {
"qs": "6.16.0"
},
"markdownlint-cli": {
"js-yaml": "5.4.1"
},
"copy-webpack-plugin": {
"serialize-javascript": "7.0.5"
},
"sockjs": {
"uuid": "11.1.1"
},
"@wordpress/scripts": {
"adm-zip": "0.6.1"
}
},
"scripts": {
"build:dev": "cross-env NODE_ENV=development npm-run-all 'build:!(dev|prod)'",
"build:prod": "cross-env NODE_ENV=production npm-run-all 'build:!(dev|prod)'",
"build:blocks": "wp-scripts build --experimental-modules --config ./node_modules/@wordpress/scripts/config/webpack.config.js --webpack-src-dir=./src/blocks/ --output-path=./assets/build/blocks/",
"build:assets": "wp-scripts build --experimental-modules --config ./webpack.config.js",
"create:block": "./bin/block-scaffold/block.js",
"init": "./bin/init.js",
"sync-ai": "node bin/sync-ai.js",
"release:bump": "wp-tooling release:bump",
"release:changelog": "wp-tooling release:changelog",
"release:zip": "wp-tooling release:zip",
"prepare": "wp-tooling install-hooks || true && npm run sync-ai",
"lint": "npm-run-all --parallel lint:css lint:js lint:php lint:package-json",
"lint:css": "wp-scripts lint-style ./src",
"lint:css:fix": "npm run lint:css -- --fix ./src",
"lint:js": "wp-scripts lint-js ./src",
"lint:js:fix": "npm run lint:js -- --fix ./src",
"lint:js:report": "npm run lint:js -- --output-file lint-js-report.json --format json .",
"lint:php": "vendor/bin/phpcs",
"lint:php:fix": "./bin/phpcbf.sh",
"lint:package-json": "wp-scripts lint-pkg-json --ignorePath .gitignore",
"lint:staged": "lint-staged",
"start:blocks": "cross-env NODE_ENV=development wp-scripts start --hot --experimental-modules --config ./webpack.blocks.config.js --webpack-src-dir=./src/blocks/ --output-path=./assets/build/blocks/",
"start:assets": "cross-env NODE_ENV=development wp-scripts start --experimental-modules --config ./webpack.config.js",
"start": "npm-run-all --parallel start:*",
"test": "npm-run-all --parallel test:js test:php",
"test:js": "wp-scripts test-unit-jest --config=tests/js/jest.config.js --passWithNoTests",
"test:js:watch": "npm run test:js -- --watch",
"pretest:php": "wp-env start --config=.wp-env.tests.json && wp-env run --config=.wp-env.tests.json cli --env-cwd=wp-content/plugins/$(basename \"$PWD\") -- sh -c 'test -f vendor/autoload.php || composer install --no-interaction'",
"test:php": "wp-env run --config=.wp-env.tests.json cli --env-cwd=wp-content/plugins/$(basename \"$PWD\") -- vendor/bin/phpunit -c phpunit.xml.dist",
"pretest:php:coverage": "echo \"\\e[1m\\e[32mMake sure you have run npm run wp-env start -- --config=.wp-env.tests.json --xdebug=coverage before using this command\\e[0m\" && wp-env run --config=.wp-env.tests.json cli --env-cwd=wp-content/plugins/$(basename \"$PWD\") -- sh -c 'test -f vendor/autoload.php || composer install --no-interaction'",
"test:php:coverage": "wp-env run --config=.wp-env.tests.json cli --env-cwd=wp-content/plugins/$(basename \"$PWD\") -- vendor/bin/phpunit -c phpunit.xml.dist --coverage-html coverage",
"posttest:php:coverage": "echo \"\\e[1m\\e[32mIf you have run this command with xdbug coverage enabled, you can view the coverage report at /coverage path\\e[0m\"",
"wp-env": "wp-env",
"pot": "composer run pot"
}
}