Skip to content

Commit e7a5ff9

Browse files
Update dependencies, GitHub action, WP compatiblity; replace chartist-plugin-tooltips-updated (#52)
* Update dependencies and GitHub action * Declare compatibility with WordPress 6.9 * Replace outdated Chartist tooltip plugin with a custom implementation
1 parent 29e6bf7 commit e7a5ff9

11 files changed

Lines changed: 5073 additions & 2811 deletions

.github/workflows/code-style.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
1-
name: Code style check
1+
name: Check code style
2+
23
on: push
4+
35
jobs:
46
quality:
57
runs-on: ubuntu-latest
8+
69
steps:
710
- name: Checkout
8-
uses: actions/checkout@v4
9-
with:
10-
fetch-depth: 0
11+
uses: actions/checkout@v6
12+
1113
- name: Setup PHP
1214
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.5
17+
18+
- name: Install Composer dependencies
19+
run: composer install --prefer-dist --no-interaction
20+
1321
- name: Setup Node
14-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v6
1523
with:
16-
node-version: '18'
17-
- name: Install
18-
run: |
19-
composer install --no-interaction
20-
npm ci
21-
- name: Code style checks for PHP
24+
node-version: 24
25+
26+
- name: Install npm dependencies
27+
run: npm clean-install
28+
29+
- name: Check code style for PHP
2230
run: composer cs
23-
- name: Code style checks for CSS and JavaScript
31+
32+
- name: Check code style for CSS and JavaScript
2433
run: npm run cs

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Changed
11+
- Update dependencies, including the Chartist library used for the charts
12+
- Replace outdated Chartist tooltip plugin with a custom implementation
13+
1014

1115
## Version 2.6.4
1216

composer.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@
1616
},
1717
"require": {
1818
"php": ">=5.6",
19-
"npm-asset/chartist": "^1.3.0",
20-
"npm-asset/chartist-plugin-tooltips-updated": "^1.0.0"
19+
"npm-asset/chartist": "^1.5.0"
2120
},
2221
"require-dev": {
23-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
22+
"dealerdirect/phpcodesniffer-composer-installer": "^1.2",
2423
"matthiasmullie/minify": "^1.3",
25-
"phpcompatibility/php-compatibility": "^9.3",
24+
"phpcompatibility/phpcompatibility-wp": "^2.1",
2625
"slowprog/composer-copy-file": "^0.3",
27-
"squizlabs/php_codesniffer": "^3.7",
28-
"wp-coding-standards/wpcs": "^2.3"
26+
"wp-coding-standards/wpcs": "^3.3"
2927
},
3028
"repositories": [
3129
{
@@ -56,8 +54,7 @@
5654
],
5755
"minify": [
5856
"minifycss css/style.css > css/style.min.css",
59-
"minifyjs js/functions.js > js/functions.min.js",
60-
"minifycss vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.css > lib/chartist-plugin-tooltip.min.css"
57+
"minifyjs js/functions.js > js/functions.min.js"
6158
]
6259
},
6360
"config": {
@@ -68,8 +65,7 @@
6865
"extra": {
6966
"copy-file": {
7067
"vendor/npm-asset/chartist/dist/index.css": "lib/chartist.min.css",
71-
"vendor/npm-asset/chartist/dist/index.umd.js": "lib/chartist.min.js",
72-
"vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.min.js": "lib/"
68+
"vendor/npm-asset/chartist/dist/index.umd.js": "lib/chartist.min.js"
7369
}
7470
}
7571
}

0 commit comments

Comments
 (0)