Skip to content

Commit

Permalink
Move tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jul 26, 2024
1 parent 6a1ab7f commit b77a86b
Show file tree
Hide file tree
Showing 6 changed files with 1,418 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
with:
composer-options: '--prefer-dist --no-progress --no-interaction'

- name: Run tests
run: composer run-script phpcs
- name: Run lint
run: composer run-script lint
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,4 @@ build/
deploy/
docs/
node_modules/

# Vendor
vendor/
devtools/vendor/
devtools/composer.lock
27 changes: 16 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,33 @@
"ernilambar/optioner": "^2.0",
"ernilambar/wp-admin-notice": "^2.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"slevomat/coding-standard": "^8.15",
"wp-cli/i18n-command": "^2.6",
"wp-coding-standards/wpcs": "^3.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true
},
"optimize-autoloader": true,
"process-timeout": 7200,
"sort-packages": true
},
"scripts": {
"phpcbf": [
"composer --working-dir=devtools update --no-interaction",
"devtools/vendor/bin/phpcbf --standard=.phpcs.xml.dist"
],
"phpcs": [
"composer --working-dir=devtools update --no-interaction",
"devtools/vendor/bin/phpcs --standard=.phpcs.xml.dist"
"lint": [
"@lint-php",
"@phpcs"
],
"pot": [
"composer --working-dir=devtools update --no-interaction",
"devtools/vendor/bin/wp i18n make-pot . --exclude=build,deploy,node_modules,vendor --headers='{\"POT-Creation-Date\":\"\"}'"
]
"lint-php": "@php ./vendor/bin/parallel-lint --colors --exclude .git --exclude vendor --exclude node_modules --exclude deploy .",
"phpcbf": "@php ./vendor/bin/phpcbf --report-full --report-summary",
"phpcs": "@php ./vendor/bin/phpcs --report-full --report-summary",
"pot": "./vendor/bin/wp i18n make-pot . --exclude=build,deploy,node_modules,vendor --headers='{\"POT-Creation-Date\":\"\"}'"
}
}
Loading

0 comments on commit b77a86b

Please sign in to comment.