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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@happyprime/eslint-config');
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 (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/phpcs.yml@trunk
with:
php-version: '8.3'
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 22)

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: 22
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');
43 changes: 43 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "happyprime/atvp.org",
"type": "project",
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require-dev": {
"happyprime/coding-standards": "*",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
},
"scripts": {
"phpcs": "vendor/bin/phpcs",
"phpcbf": "vendor/bin/phpcbf",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
"lint": [
"@lint:theme",
"@lint:features"
],
"lint:theme": "phpcs --basepath=. ./themes/atvp.org -v",
"lint:features": "phpcs --basepath=. ./mu-plugins/atvp.org -v",
"fix": [
"@fix:theme",
"@fix:features"
],
"fix:theme": "phpcbf --basepath=. ./themes/atvp.org -v",
"fix:features": "phpcbf --basepath=. ./mu-plugins/atvp.org -v"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"preferred-install": {
"happyprime/*": "source",
"*": "dist"
}
}
}
Loading
Loading