Skip to content
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: 2 additions & 0 deletions .github/workflows/test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ jobs:
php-versions: '["8.2", "8.3", "8.4"]'
wp-versions: '["6.7", "6.8", "6.9", "7.0", "7.1"]'
test-php-exclude: '[]'
lint-js-files-command: npm run lint:js:files
lint-css-files-command: npm run lint:css:files
# No tokens: every rtCamp dependency is public and the shared workflow falls
# back to GITHUB_TOKEN. A PAT here breaks all dist downloads once it expires.
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
'**/*.php': [ 'npm run lint:php' ],
'**/*.js': [ 'npm run lint:js' ],
'**/*.{css,scss}': [ 'npm run lint:css' ],
'**/*.js': [ 'npm run lint:js:files' ],
'**/*.{css,scss}': [ 'npm run lint:css:files' ],
'package.json': [ 'npm run lint:package-json' ],
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@
"release:zip": "wp-tooling release:zip",
"prepare": "wp-tooling install-hooks || true && npm run sync-ai",
"lint": "npm-run-all --parallel lint:css lint:js lint:php lint:package-json",
"lint:css": "wp-scripts lint-style ./src",
"lint:css": "npm run lint:css:files -- ./src",
"lint:css:files": "wp-scripts lint-style --allow-empty-input=true",
Comment thread
aryanjasala marked this conversation as resolved.
Resolved
"lint:css:fix": "npm run lint:css -- --fix ./src",
"lint:js": "wp-scripts lint-js ./src",
"lint:js": "npm run lint:js:files -- ./src",
"lint:js:files": "wp-scripts lint-js",
"lint:js:fix": "npm run lint:js -- --fix ./src",
"lint:js:report": "npm run lint:js -- --output-file lint-js-report.json --format json .",
Comment thread
aryanjasala marked this conversation as resolved.
Resolved
"lint:php": "vendor/bin/phpcs",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const getBrowserSyncPlugins = () => {
key: process.env.WP_SSL_KEY,
cert: process.env.WP_SSL_CERT,
},
}
}
: {} ),
files: BROWSER_SYNC_FILES,
notify: false,
Expand Down
Loading