Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nlemoine committed Feb 23, 2024
1 parent 7154518 commit 8680aba
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 83 deletions.
2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

21 changes: 12 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.editorconfig export-ignore
/.env.example export-ignore
/.wp-env.json export-ignore
/tests export-ignore
webpack.config.js export-ignore
package.json export-ignore
ecs.php export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.editorconfig export-ignore
/.env.example export-ignore
/release-please-config.json export-ignore
/.release-please-manifest.json export-ignore
/tests export-ignore
/webpack.config.js export-ignore
/package.json export-ignore
/ecs.php export-ignore
/CONTRIBUTING.md export-ignore
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/node_modules
/vendor
/package-lock.json
composer.lock
/dev/*
!/dev/mu.php
/wp-content

12 changes: 0 additions & 12 deletions .wp-env.json

This file was deleted.

16 changes: 8 additions & 8 deletions assets/src/js/field.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(($) => {
const Field = acf.models.SelectField.extend({
( ( $ ) => {
const Field = acf.models.SelectField.extend( {
type: 'country',
});
acf.registerFieldType(Field);
acf.registerConditionForFieldType('contains', 'country');
acf.registerConditionForFieldType('selectEqualTo', 'country');
acf.registerConditionForFieldType('selectNotEqualTo', 'country');
})(jQuery);
} );
acf.registerFieldType( Field );
acf.registerConditionForFieldType( 'contains', 'country' );
acf.registerConditionForFieldType( 'selectEqualTo', 'country' );
acf.registerConditionForFieldType( 'selectNotEqualTo', 'country' );
} )( jQuery );
22 changes: 5 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"php": "^7.4 || ^8.0"
},
"require-dev": {
"wpengine/advanced-custom-fields-pro": "^6.0",
"stoutlogic/acf-builder": "^1.12",
"ergebnis/composer-normalize": "^2.42",
"symplify/easy-coding-standard": "^12.1",
"umpirsky/country-list": "*"
"umpirsky/country-list": "*",
"wpengine/advanced-custom-fields-pro": "^6.0"
},
"repositories": [
{
Expand All @@ -36,7 +36,7 @@
"type": "composer",
"url": "https://connect.advancedcustomfields.com",
"only": [
"wpengine/*"
"wpengine/*"
]
}
],
Expand All @@ -45,24 +45,12 @@
"config": {
"allow-plugins": {
"composer/installers": true,
"pivvenit/acf-pro-installer": true,
"roots/wordpress-core-installer": true
"ergebnis/composer-normalize": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"installer-paths": {
"dev/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"dev/plugins/{$name}/": [
"type:wordpress-plugin"
]
},
"wordpress-install-dir": "tests/wp"
},
"scripts": {
"post-install-cmd": [
"@sync-country-data"
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build",
"format": "wp-scripts format ./assets/src/js",
"packages-update": "wp-scripts packages-update",
"env:start": "wp-env start"
"format": "wp-scripts format ./assets/src/js"
},
"devDependencies": {
"@wordpress/env": "^9.4.0",
"@wordpress/scripts": "^27.3.0",
"assets-webpack-plugin": "^7.1.1",
"mini-css-extract-plugin": "^2.8.0",
"webpack-manifest-plugin": "^5.0.0"
}
Expand Down
28 changes: 0 additions & 28 deletions phpcs.xml

This file was deleted.

0 comments on commit 8680aba

Please sign in to comment.