Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refactor for newspack-scripts dependency updates #303

Merged
merged 15 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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' ],
};
73 changes: 40 additions & 33 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
{
"name": "automattic/newspack-sponsors",
"description": "Add sponsors and sponsor info to posts. Allows special visual treatment for sponsored content.",
"type": "wordpress-plugin",
"require": {
},
"require-dev": {
"automattic/vipwpcs": "^2.0",
"wp-coding-standards/wpcs": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"brainmaestro/composer-git-hooks": "^2.8"
},
"license": "GPL-2.0-or-later",
"scripts": {
"post-install-cmd": [ "vendor/bin/cghooks add --no-lock" ],
"post-update-cmd": [ "vendor/bin/cghooks update" ]
},
"extra": {
"hooks": {
"pre-commit": [
"./node_modules/.bin/lint-staged"
],
"commit-msg": [
"cat $1 | ./node_modules/.bin/newspack-scripts commitlint"
]
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
"name": "automattic/newspack-sponsors",
"description": "Add sponsors and sponsor info to posts. Allows special visual treatment for sponsored content.",
"type": "wordpress-plugin",
"require": {},
"require-dev": {
"automattic/vipwpcs": "^3.0",
"wp-coding-standards/wpcs": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"brainmaestro/composer-git-hooks": "^2.8"
},
"license": "GPL-2.0-or-later",
"scripts": {
"post-install-cmd": [
"vendor/bin/cghooks add --no-lock"
],
"post-update-cmd": [
"vendor/bin/cghooks update"
]
},
"extra": {
"hooks": {
"pre-commit": [
"./node_modules/.bin/lint-staged"
],
"commit-msg": [
"cat $1 | ./node_modules/.bin/newspack-scripts commitlint"
]
}
},
"config": {
"platform": {
"php": "8.0"
},
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading