Skip to content

Commit

Permalink
Updated json
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 2, 2025
1 parent 8af6d05 commit 17e2389
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
# Notes regarding supported versions in WP:
# The base matrix only contains the PHP versions which are supported on all supported WP versions.
php: ['8.0', '7.3', '7.4']
php: ['8.0', '8.1', '8.2', '7.4']
wp: ['latest']
experimental: [false]

Expand All @@ -41,7 +41,7 @@ jobs:
wp: 'latest'
experimental: true
- php: '8.0'
wp: '5.9'
wp: '6.3'
experimental: true

name: "PHP ${{ matrix.php }} - WP ${{ matrix.wp }}"
Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"role": "Developer"
}
],
"requires": {
"require": {
"php": ">=7.4"
},
"require-dev": {
"szepeviktor/phpstan-wordpress": "^1",
"phpstan/extension-installer": "^1",
"phpstan/phpstan": "^1",
"php-stubs/wordpress-stubs": "^6",
"wp-coding-standards/wpcs": "^3.0",
"wp-coding-standards/wpcs": "^3",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"phpcompatibility/phpcompatibility-wp": "^2",
"yoast/phpunit-polyfills": "^3",
"phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5"
"phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5 || ^8"
},
"config": {
"allow-plugins": {
Expand All @@ -37,6 +37,9 @@
}
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M"
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
"phpstan-baseline": "vendor/bin/phpstan analyse --memory-limit=2048M --generate-baseline",
"phpcs": "vendor/bin/phpcs -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')",
"phpcbf": "vendor/bin/phpcbf -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')"
}
}
}
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,19 @@
"main": "index.js",
"scripts": {
"build": "wp-scripts build --webpack-src-dir=includes/frontend/blocks/src/ --output-path=includes/frontend/blocks/build/",
"build:query": "wp-scripts build --webpack-src-dir=includes/pro/blocks/src/query/ --output-path=includes/pro/blocks/build/query/",
"build:featured-image": "wp-scripts build --webpack-src-dir=includes/pro/blocks/src/featured-image/ --output-path=includes/pro/blocks/build/featured-image/",
"build:pro": "npm run build:query && npm run build:featured-image && npm run build:popular-posts-pro",
"build:all": "npm run build && npm run build:pro",
"check-engines": "wp-scripts check-engines",
"format": "wp-scripts format ./includes/pro/blocks/src/ ./includes/frontend/blocks/src/",
"format:free": "wp-scripts format ./includes/frontend/blocks/src/",
"format:pro": "wp-scripts format ./includes/pro/blocks/src/",
"lint:css": "wp-scripts lint-style ./includes/pro/blocks/src/ ./includes/frontend/blocks/src/",
"lint:js": "wp-scripts lint-js ./includes/pro/blocks/src/ ./includes/frontend/blocks/src/",
"packages-update": "wp-scripts packages-update",
"start": "wp-scripts start --webpack-src-dir=includes/frontend/blocks/src/ --output-path=includes/frontend/blocks/build/",
"start:featured-image": "wp-scripts start --webpack-src-dir=includes/pro/blocks/src/featured-image/ --output-path=includes/pro/blocks/build/featured-image/",
"start:query": "wp-scripts start --webpack-src-dir=includes/pro/blocks/src/query/ --output-path=includes/pro/blocks/build/query/",
"start:pro": "npm run start:query & npm run start:featured-image & npm run start:popular-posts-pro",
"start:all": "npm run start & npm run start:pro",
"zip": "wp-scripts plugin-zip"
},
"files": [
"freemius",
"includes",
"languages",
"templates",
"README.md",
"better-search.php",
"index.php",
Expand All @@ -38,12 +30,12 @@
"wpml-config.xml"
],
"devDependencies": {
"@wordpress/prettier-config": "^4.13.0",
"@wordpress/scripts": "^27"
"@wordpress/prettier-config": "^4.14.0",
"@wordpress/scripts": "^30.7.0"
},
"dependencies": {
"@wordpress/icons": "^10.13.0",
"@wordpress/icons": "^10.14.0",
"clsx": "^2.1.1",
"uuid": "^11.0.3"
}
}
}

0 comments on commit 17e2389

Please sign in to comment.