Skip to content

Commit

Permalink
fix: update dependencies to support @wordpress/scripts (#1530)
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 updating dependencies in newspack-scripts

* refactor: use proxy script for eslint and stylelint scripts

* fix: peer dependency conflicts

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

* chore: remove ajv dependency

* chore: update lint-staged

* chore: add .stylelintrc.js

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

* fix: package-lock.json

* fix: reformat SCSS

* 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

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

* chore: add NPM scripts for PHP

* chore: update newspack-components to v3.0.0

* chore: bump newspack-scripts to v5.5.2
  • Loading branch information
dkoo authored Aug 2, 2024
1 parent 25ecc21 commit 2d732f2
Show file tree
Hide file tree
Showing 36 changed files with 21,497 additions and 59,904 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' ],
};
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"config": {
"platform": {
"php": "7.4"
"php": "8.0"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand All @@ -48,4 +48,4 @@
"includes"
]
}
}
}
Loading

0 comments on commit 2d732f2

Please sign in to comment.