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
3 changes: 3 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
node_modules/
vendor/
.distignore
.editorconfig
.gitignore
composer.json
composer.lock
phpcs.xml
phpstan.neon.dist
README.md
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
15 changes: 15 additions & 0 deletions .github/workflows/deploy-to-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update readme.txt and assets
on:
push:
branches: [trunk]
jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-to-wp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy tagged release to WordPress.org
on:
push:
tags:
- '*'
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
21 changes: 21 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Run PHPStan and comment on the pull request with any issues.
#
# This file is managed in https://github.com/happyprime/projects
name: PHPStan (Default, PHP 8.3)

on: pull_request

# The GITHUB_TOKEN used by Dependabot has read-only permissions by default. We
# provide write permissions to this workflow so that comments can be left on
# the pull request.
#
# @see https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#changing-github_token-permissions
permissions:
contents: read
pull-requests: write

jobs:
call-workflow:
uses: happyprime/workflows/.github/workflows/phpstan.yml@trunk
with:
php-version: '8.3'
18 changes: 18 additions & 0 deletions .github/workflows/plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Run WP.org's plugin check.
#
# This file is managed in https://github.com/happyprime/projects
name: WP.org Plugin Check

on:
push:
branches:
- trunk
pull_request:
branches:
- trunk

jobs:
call-workflow:
uses: happyprime/workflows/.github/workflows/plugin-check.yml@trunk
with:
php-version: '8.3'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/build/
/node_modules
/vendor/

# Ignore local Claude settings
.claude/settings.local.json
30 changes: 23 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,35 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
"composer/installers": true,
"phpstan/extension-installer": true
},
"platform": {
"php": "7.4"
}
},
"repositories": [
{
"type": "package",
"package": {
"name": "phpcompatibility/php-compatibility",
"type": "phpcodesniffer-standard",
"version": "9.99.9",
"source": {
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
"type": "git",
"reference": "9f7142356b5674164a6f6dbe12a7a1bcc632db21"
}
}
}
],
"require-dev": {
"squizlabs/php_codesniffer": "*",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"sirbrillig/phpcs-variable-analysis": "*",
"wp-coding-standards/wpcs": "*"
"happyprime/coding-standards": "*",
"phpcompatibility/php-compatibility": "9.99.9"
},
"scripts": {
"phpcs": "vendor/bin/phpcs",
"phpcbf": "vendor/bin/phpcbf",
"test": "vendor/bin/phpunit"
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M"
}
}
Loading
Loading