Skip to content

Commit

Permalink
fix: update dependencies to support @wordpress/scripts (#45)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Updates dependencies for compatibility with WordPress 6.6.*, but breaks JS in WordPress 6.5.* and below. If you need support for WP 6.5.*, please do not upgrade to this new major version.

* chore: refactor for newspack-scripts dependency updates

* chore: update newspack-scripts to v5.6.0-alpha.3

* chore: add .stylelintrc.js

* chore: update newspack-scripts to v5.6.0-alpha.4

* fix: add missing Prettier config files

* chore: update newspack-scripts to 5.6.0-alpha.5

* chore: update newspack-scripts to v5.6.0-alpha.7

* fix: format SCSS

* chore: update newspack-scripts to v5.6.0-alpha.8

* fix: phpcs errors

* chore: update newspack-components to v3.0.0

* fix: phpcs error

* chore: bump newspack-scripts to v5.5.2
  • Loading branch information
dkoo authored Aug 2, 2024
1 parent 70c0ea4 commit de1a172
Show file tree
Hide file tree
Showing 48 changed files with 19,015 additions and 52,919 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.11.1
lts/*
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
release
vendor
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const baseConfig = require( './node_modules/newspack-scripts/config/prettier.config.js' );

module.exports = {
...baseConfig
};
9 changes: 9 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
ignoreFiles: [
'dist/**',
'node_modules/**',
'release/**',
'scripts/**',
],
extends: [ './node_modules/newspack-scripts/config/stylelint.config.js' ],
};
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "wordpress-plugin",
"license": "GPL-3.0",
"require-dev": {
"automattic/vipwpcs": "^2.0.0",
"wp-coding-standards/wpcs": "*",
"automattic/vipwpcs": "^3.0",
"wp-coding-standards/wpcs": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"yoast/phpunit-polyfills": "^1.1",
"yoast/phpunit-polyfills": "^2.0",
"phpunit/phpunit": "^7.0 || ^9.5"
},
"autoload": {
Expand All @@ -17,8 +17,12 @@
]
},
"config": {
"platform": {
"php": "8.0"
},
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
}
Loading

0 comments on commit de1a172

Please sign in to comment.