Skip to content
Open
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
23 changes: 23 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will do a clean install of node dependencies and build the source code.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
- name: Use Node.js from package.json
uses: actions/setup-node@v7
with:
node-version-file: package.json
cache: npm
- run: npm ci
- run: npm run build
32 changes: 32 additions & 0 deletions .github/workflows/php-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PHP Quality

on:
pull_request:
branches: [ master ]

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '8.3' ]
name: PHP ${{ matrix.php-versions }} Test
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl #optional, setup extensions

- name: Check composer
run: composer validate

- name: Add dependencies
run: composer install

- name: Check cs
run: composer cs
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
!.yarn/sdks
!.yarn/versions
node_modules/
package-lock.json

.wp-env/mu-plugins/
.wp-env/plugins/*
Expand Down
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.5.0.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/bin/eslint.js

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/eslint/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .yarn/sdks/integrations.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/prettier/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/prettier/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml

This file was deleted.

48 changes: 22 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
".wp-env/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
".wp-env/plugins/{$name}/": [
"type:wordpress-plugin"
]
}
},
"repositories": [
{
"name": "wp-packages",
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
],
"canonical": false
"url": "https://repo.wp-packages.org"
},
{
"type": "composer",
Expand All @@ -43,28 +49,18 @@
"beapi/blockparty-tabs": "^1.0",
"beapi/mega-menu-block": "^1.0.3",
"themeone/wp-grid-builder": "^2.1",
"wpackagist-plugin/safe-svg": "^2.0",
"wpackagist-plugin/wordpress-seo": "^24.6",
"wpengine/advanced-custom-fields-pro": "^6.3"
"wp-plugin/advanced-custom-fields": "6.8.8",
"wp-plugin/safe-svg": "2.4.0",
"wp-plugin/wordpress-seo": "28.3"
},
"require-dev": {
"composer/installers": "^1.0|^2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-parallel-lint/php-parallel-lint": "^1.1",
"phpcompatibility/php-compatibility": "^9.3",
"phpro/grumphp-shim": "^1.3",
"squizlabs/php_codesniffer": "^3.7.1",
"wp-coding-standards/wpcs": "^3.0"
},
"extra": {
"installer-paths": {
".wp-env/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
".wp-env/plugins/{$name}/": [
"type:wordpress-plugin"
]
}
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"overtrue/phplint": "^9.0",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpro/grumphp-shim": "^2.6",
"roave/security-advisories": "dev-latest",
"wp-coding-standards/wpcs": "3.4.1"
},
"scripts": {
"post-root-package-install": "php -r \"copy('.env.example', '.env');\"",
Expand Down
7 changes: 1 addition & 6 deletions config/loaders.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const srcPath = path.resolve(__dirname, '../src');
const nodeModulesPath = path.resolve(__dirname, '../node_modules');
const browserslistConfig = require('@wordpress/browserslist-config');

function isEditor(loaderContext) {
Expand All @@ -16,11 +15,7 @@ module.exports = {
{
test: /\.(woff|woff2)$/,
type: 'asset/resource',
include: [
srcPath + '/fonts',
nodeModulesPath + '/@fontsource-variable',
nodeModulesPath + '/@fontsource',
],
include: [srcPath + '/fonts'],
generator: {
filename: 'fonts/[name][ext][query]',
},
Expand Down
2 changes: 1 addition & 1 deletion grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ grumphp:
npm_script:
script: lint
triggered_by: ['js', 'scss']
working_directory: "./web/app/themes/theme-name" # Change theme name here
working_directory: "."
is_run_task: true
silent: false
testsuites: []
Expand Down
Loading