Skip to content

Commit

Permalink
enhanced plugin bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Jan 8, 2024
1 parent 2453d7a commit 833f2ed
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

php vendor/bin/phpcbf --standard=.phpcs.xml.dist --report=summary
php vendor/bin/phpcbf --standard=phpcs.xml.dist --report=summary
npm run lint:js
1 change: 0 additions & 1 deletion admin/index.php

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"l3u/b8": "*"
},
"scripts": {
"PHPCS": "vendor/bin/phpcs --standard=phpcs.ruleset.xml -s --report=full,summary,source",
"PHPCBF": "vendor/bin/phpcbf --standard=.phpcs.xml.dist --report=summary",
"PHPCS": "vendor/bin/phpcs --standard=phpcs.xml.dist -s --report=full,summary,source",
"PHPCBF": "vendor/bin/phpcbf --standard=phpcs.xml.dist --report=full,summary,source",
"test": "vendor/bin/phpunit -c phpunit.xml.dist",
"test-multisite": "WP_MULTISITE=1 vendor/bin/phpunit -c tests/multisite.xml --verbose"
},
Expand Down
20 changes: 11 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion core/index.php

This file was deleted.

2 changes: 1 addition & 1 deletion languages/cf7-antispam.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-01-08T00:11:24+00:00\n"
"POT-Creation-Date: 2024-01-08T11:04:50+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0-alpha-dd92ec0\n"
"X-Domain: cf7-antispam\n"
Expand Down
145 changes: 73 additions & 72 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,73 @@
{
"name": "cf7-antispam",
"author": "Erik Golinelli",
"license": "GPL-2.0-only",
"version": "0.6.0",
"description": "AntiSpam for Contact Form 7",
"files": [
"admin/*",
"assets/*",
"build/*",
"core/*",
"engine/*",
"includes/*",
"vendor/*",
"languages/cf7-antispam.pot",
"languages/readme.txt",
"cf7-antispam.php",
"LICENSE",
"readme.txt"
],
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build",
"preplugin-zip": "wp-env run cli --env-cwd=wp-content/plugins/cf7-antispam \"composer install --no-dev && composer dump-autoload --optimize\"",
"plugin-zip": "wp-scripts plugin-zip",
"postplugin-zip": "wp-env run cli --env-cwd=wp-content/plugins/cf7-antispam \"composer install\"",
"lint:css": "wp-scripts lint-style ./src/**/*.scss --fix",
"lint:js": "wp-scripts lint-js ./src/**/*.js --fix",
"packages-update": "wp-scripts packages-update",
"wp-env:start": "wp-env start",
"wp-env:stop": "wp-env stop",
"wp-env:destroy": "wp-env destroy",
"test:e2e": "wp-scripts test-e2e",
"test:e2e:watch": "npm run test:e2e --watch",
"postinstall": "husky install",
"PHPCS": "wp-env run composer \"composer PHPCS\"",
"test:unit:php": "wp-env run tests-wordpress /var/www/html/wp-content/plugins/cf7-antispam/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/cf7-antispam/phpunit.xml.dist --verbose"
},
"repository": {
"type": "git",
"url": "git+https://github.com/erikyo/contact-form-7-antispam.git"
},
"bugs": {
"url": "https://github.com/erikyo/contact-form-7-antispam/issues"
},
"homepage": "https://github.com/erikyo/contact-form-7-antispam#readme",
"devDependencies": {
"@wordpress/e2e-test-utils": "^10.19.0",
"@wordpress/env": "^9.0.0",
"@wordpress/eslint-plugin": "^17.5.0",
"@wordpress/scripts": "^26.19.0",
"chart.js": "^4.4.1",
"expect-puppeteer": "^9.0.2",
"husky": "^8.0.3"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=6.9.0"
},
"browserslist": [
"extends @wordpress/browserslist-config",
"Safari > 8",
"IE > 10"
],
"stylelint": {
"extends": [
"@wordpress/stylelint-config",
"@wordpress/stylelint-config/scss"
]
},
"prettier": "@wordpress/prettier-config"
}
{
"name": "cf7-antispam",
"author": "Erik Golinelli",
"license": "GPL-2.0-only",
"version": "0.6.0",
"description": "AntiSpam for Contact Form 7",
"files": [
"admin/*",
"assets/icon.svg",
"build/*",
"core/*",
"engine/*",
"includes/*",
"vendor/*",
"languages/cf7-antispam.pot",
"languages/readme.txt",
"cf7-antispam.php",
"LICENSE",
"readme.txt"
],
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build",
"preplugin-zip": "wp-env run cli --env-cwd=wp-content/plugins/cf7-antispam \"composer install --no-dev && composer dump-autoload --optimize\"",
"plugin-zip": "wp-scripts plugin-zip",
"postplugin-zip": "wp-env run cli --env-cwd=wp-content/plugins/cf7-antispam \"composer install\"",
"lint:css": "wp-scripts lint-style ./src/**/*.scss --fix",
"lint:js": "wp-scripts lint-js ./src/**/*.js --fix",
"packages-update": "wp-scripts packages-update",
"wp-env:start": "wp-env start",
"wp-env:stop": "wp-env stop",
"wp-env:destroy": "wp-env destroy",
"test:e2e": "wp-scripts test-e2e",
"test:e2e:watch": "npm run test:e2e --watch",
"postinstall": "husky install",
"makepot": "wp i18n make-pot . languages/cf7-antispam.pot --exclude=node_modules,vendor",
"PHPCS": "wp-env run composer \"composer PHPCS\"",
"test:unit:php": "wp-env run tests-wordpress /var/www/html/wp-content/plugins/cf7-antispam/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/cf7-antispam/phpunit.xml.dist --verbose"
},
"repository": {
"type": "git",
"url": "git+https://github.com/erikyo/contact-form-7-antispam.git"
},
"bugs": {
"url": "https://github.com/erikyo/contact-form-7-antispam/issues"
},
"homepage": "https://github.com/erikyo/contact-form-7-antispam#readme",
"devDependencies": {
"@wordpress/e2e-test-utils": "^10.19.0",
"@wordpress/env": "^9.0.0",
"@wordpress/eslint-plugin": "^17.5.0",
"@wordpress/scripts": "^26.19.0",
"chart.js": "^4.4.1",
"expect-puppeteer": "^9.0.2",
"husky": "^8.0.3"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=6.9.0"
},
"browserslist": [
"extends @wordpress/browserslist-config",
"Safari > 8",
"IE > 10"
],
"stylelint": {
"extends": [
"@wordpress/stylelint-config",
"@wordpress/stylelint-config/scss"
]
},
"prettier": "@wordpress/prettier-config"
}
File renamed without changes.

0 comments on commit 833f2ed

Please sign in to comment.