chore: scaffold CHRNX theme tooling
This commit is contained in:
12 files changed
+29784
No files matched your search
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "chrnx-wordpress-theme",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"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 phpunit -- --configuration=phpunit.xml.dist",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user