Skip to content

Commit

Permalink
Remove Grunt.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 30, 2023
1 parent 1bcefb8 commit 129e649
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.phplint.yml export-ignore
/docs export-ignore
/Gruntfile.js export-ignore
/phpcs.xml.dist export-ignore
/phpmd.ruleset.xml export-ignore
/phpstan.neon.dist export-ignore
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@

# PHPUnit
/.phpunit.result.cache

# PHPLint
/.phplint.cache/
9 changes: 9 additions & 0 deletions .phplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
path: ./
jobs: 10
extensions:
- php
exclude:
- node_modules/
- vendor/
- vendor-bin/
- wordpress/
94 changes: 0 additions & 94 deletions Gruntfile.js

This file was deleted.

5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"koodimonni-language/de_de": "*",
"koodimonni-language/fr_fr": "*",
"koodimonni-language/nl_nl": "*",
"overtrue/phplint": "^9.0",
"php-coveralls/php-coveralls": "^2.4",
"phpmd/phpmd": "^2.4",
"pronamic/pronamic-cli": "^1.0",
"pronamic/pronamic-cli": "^1.1",
"pronamic/wp-coding-standards": "^1.3",
"pronamic/wp-deployer": "^1.0",
"roots/wordpress": "^6.0",
Expand All @@ -55,7 +56,7 @@
"coveralls": "vendor/bin/php-coveralls -v",
"phpcbf": "XDEBUG_MODE=off vendor/bin/phpcbf",
"phpcs": "XDEBUG_MODE=off vendor/bin/phpcs -s -v",
"phplint": "find src tests -name '*.php' | xargs -n 1 -P 4 php -l",
"phplint": "vendor/bin/phplint",
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1",
"phpunit": "vendor/bin/phpunit",
Expand Down
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,5 @@
"bugs": {
"url": "https://github.com/pronamic/wp-money/issues"
},
"homepage": "https://github.com/pronamic/wp-money#readme",
"devDependencies": {
"grunt": "^1.0.4",
"grunt-checktextdomain": "^1.0.1",
"grunt-phpcs": "^0.4.0",
"grunt-phplint": "0.1.0",
"grunt-phpunit": "^0.3.6",
"grunt-wp-i18n": "^1.0.3",
"load-grunt-tasks": "^5.1.0"
}
"homepage": "https://github.com/pronamic/wp-money#readme"
}
8 changes: 8 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@
<exclude-pattern>tests/wp-config.php</exclude-pattern>

<rule ref="PronamicWP" />

<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="pronamic-money" />
</property>
</properties>
</rule>
</ruleset>

0 comments on commit 129e649

Please sign in to comment.