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 81c818a commit 1e3bf5c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 104 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
# PHPUnit
/.phpunit.cache/
/.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/
93 changes: 0 additions & 93 deletions Gruntfile.js

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"koodimonni-language/fr_fr": "*",
"koodimonni-language/ja": "*",
"koodimonni-language/nl_nl": "*",
"overtrue/phplint": "^9.0",
"php-coveralls/php-coveralls": "^2.4",
"php-stubs/wordpress-globals": "^0.2.0",
"phpmd/phpmd": "^2.9",
Expand All @@ -50,7 +51,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-datetime/issues"
},
"homepage": "https://github.com/pronamic/wp-datetime#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-datetime#readme"
}
8 changes: 8 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@
<rule ref="PronamicWP">

</rule>

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

0 comments on commit 1e3bf5c

Please sign in to comment.