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
9 changes: 9 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
> 1%
last 1 Android versions
last 1 ChromeAndroid versions
last 2 Chrome versions
last 2 Firefox versions
last 2 Safari versions
last 2 iOS versions
last 2 Edge versions
last 2 Opera versions
33 changes: 0 additions & 33 deletions .cursor/rules/project.mdc

This file was deleted.

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
21 changes: 21 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Run PHP Code Sniffer (PHPCS) and comment on the pull request with any issues.
#
# This file is managed in https://github.com/happyprime/projects
name: PHPCS (PHP 8.4)

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/phpcs.yml@trunk
with:
php-version: '8.4'
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'
19 changes: 19 additions & 0 deletions .github/workflows/verify-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is managed in https://github.com/happyprime/projects
name: Verify build (Node 24)

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/verify-build.yml@trunk
with:
node-version: 24
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
/upgrade
/uploads

# Ignore any node_modules directories.
# Ignore dependency directories.
node_modules
vendor

# Ignore db.php file created by Query Monitor.
db.php
Expand Down
1 change: 1 addition & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require( '@happyprime/postcss-config' );
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@happyprime/eslint-config/prettier');
1 change: 1 addition & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require( '@happyprime/stylelint-config' );
14 changes: 14 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"themes": [
"./themes/atvp"
],
"mappings": {
"wp-content/mu-plugins": "./mu-plugins"
},
"config": {
"WP_DEBUG": true,
"WP_DEBUG_LOG": true
},
"phpVersion": "8.4",
"testsEnvironment": false
}
42 changes: 42 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "happyprime/atvp",
"type": "project",
"minimum-stability": "stable",
"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": {
"happyprime/coding-standards": "*",
"phpcompatibility/php-compatibility": "9.99.9"
},
"scripts": {
"phpcs": "vendor/bin/phpcs",
"phpcbf": "vendor/bin/phpcbf",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
"lint": "composer phpcs && composer phpstan",
"fix": "composer phpcbf"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"preferred-install": {
"happyprime/*": "source",
"*": "dist"
}
}
}
Loading
Loading