34 lines
1.3 KiB
JSON
34 lines
1.3 KiB
JSON
{
|
|
"name": "chrnx-wordpress-theme",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "npm@11.17.0",
|
|
"engines": {
|
|
"node": ">=22 <27"
|
|
},
|
|
"scripts": {
|
|
"build": "wp-scripts build",
|
|
"start": "wp-scripts start",
|
|
"env:start": "wp-env start --update",
|
|
"env:stop": "wp-env stop",
|
|
"env:activate": "wp-env run cli wp theme activate chrnx",
|
|
"composer": "wp-env run cli --env-cwd=wp-content/themes/chrnx composer",
|
|
"phpcs": "npm run composer -- exec phpcs -- -q",
|
|
"test:smoke": "node --test tests/smoke/*.test.mjs",
|
|
"test:js": "wp-scripts test-unit-js --runInBand",
|
|
"test:php": "wp-env run cli --env-cwd=wp-content/themes/chrnx composer exec phpunit",
|
|
"test:e2e": "playwright test",
|
|
"lint:js": "wp-scripts lint-js assets/js tests/js scripts",
|
|
"lint:css": "wp-scripts lint-style 'assets/css/**/*.css' 'blocks/**/*.css'",
|
|
"lint:md": "wp-scripts lint-md-docs docs README.md",
|
|
"test": "npm run test:smoke && npm run lint:js && npm run lint:css && npm run phpcs && npm run test:js && npm run test:php && npm run test:e2e"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.62.1",
|
|
"@wordpress/env": "11.12.0",
|
|
"@wordpress/scripts": "34.0.0",
|
|
"axe-playwright": "2.2.2",
|
|
"lighthouse": "13.4.1"
|
|
}
|
|
}
|