Skip to content

Commit

Permalink
Merge branch 'main' into feature/pull-request-preview-playground
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion authored Jul 29, 2024
2 parents 6b79b3d + 9aabb26 commit 410c468
Show file tree
Hide file tree
Showing 335 changed files with 10,152 additions and 14,953 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
module.exports = {
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
ignorePatterns: [
'node_modules/',
'build/',
'coverage/',
'playwright-report/',
'test-results/',
'vendor/',
'wp-core/',
],
env: {
browser: true,
es2020: true,
},
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,30 @@ jobs:
- name: Run JSHint
run: npm run lint:js
if: ${{ success() || failure() }}

stylelint:
name: CSS Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log debug information
run: |
npm --version
node --version
git --version
php --version
composer --version
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'

- name: NPM install
run: npm ci --legacy-peer-deps

- name: Run JSHint
run: npm run lint:css
if: ${{ success() || failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/wordpress-org-plugin-guidelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
unzip gatherpress.zip -d tmp-build
- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@main
uses: wordpress/plugin-check-action@v1
with:
build-dir: './tmp-build/gatherpress'
wp-version: 'trunk'
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13.1
v20.16.0
7 changes: 7 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
build
coverage
playwright-report
test-results
vendor
wp-core
34 changes: 34 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recommended',
'stylelint-config-recommended-scss'
],
plugins: ['stylelint-scss'],
ignoreFiles: [
'node_modules/**/*',
'build/**/*',
'coverage/**/*',
'playwright-report/**/*',
'test-results/**/*',
'vendor/**/*',
'wp-core/**/*',
],
rules: {
'import-notation': null,
'color-no-invalid-hex': true,
'font-family-no-duplicate-names': true,
'function-calc-no-unspaced-operator': true,
'string-no-newline': true,
'block-no-empty': null,
'unit-no-unknown': true,
'property-no-unknown': [true, {
ignoreProperties: ['/^--wp--preset--/']
}],
'custom-property-pattern': null,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
'no-descending-specificity': null,
'selector-class-pattern': null,
},
};
51 changes: 51 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "https://playground.wordpress.net/events",
"preferredVersions": {
"php": "8.2",
"wp": "latest"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"features": {
"networking": true
},
"steps": [
{
"step": "setSiteOptions",
"options": {
"blogname": "GatherPress",
"blogdescription": "Powering Communities with WordPress.",
"users_can_register": 1,
"permalink_structure": "/%year%/%monthnum%/%postname%/"
}
},
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $user_id = wp_create_user('editor', 'editorpass', 'editor@localhost.test'); (new WP_User($user_id))->set_role('editor');"
},
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org\/plugins",
"slug": "gatherpress"
},
"options": {
"activate": true
}
},
{
"step": "importWxr",
"file": {
"resource": "url",
"url": "https://github.com/carstingaxion/gatherpress-demo-data/main/GatherPress-demo-data-2024.xml"
}
}
]
}
3 changes: 3 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"plugins": [
"."
],
"config": {
"WP_DEBUG_LOG": true
},
"mappings": {
"wp-content/plugins": "./wp-core/plugins",
"wp-content/themes": "./wp-core/themes"
Expand Down
1 change: 1 addition & 0 deletions build/272.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/481.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/535-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 410c468

Please sign in to comment.