Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh authored Sep 19, 2023
0 parents commit 25ad965
Show file tree
Hide file tree
Showing 51 changed files with 35,196 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .deployignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.DS_Store
Thumbs.db
wp-cli.local.yml
node_modules/
*.sql
*.tar.gz
*.zip
.phpunit.result.cache
Dockerfile
output.log
.github
tests
bin
composer.lock
.phpcs.xml
phpunit.xml
configure.php
DOCKER_ENV
phpunit.xml
tests
.phpcs
Makefile
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
root = true

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

[*.{ts,tsx,js,jsx,scss,css,json,yaml,yml,feature,xml}]
indent_style = space
indent_size = 2

# Composer File
[composer.{json,lock}]
indent_style = space
indent_size = 4

# Dotfiles
[.*]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
vendor
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@alleyinteractive/eslint-config/typescript-react"],
"settings": {
"import/resolver": "webpack"
}
}
28 changes: 28 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Exclude these files from release archives.
#
# This will also make the files unavailable when using Composer with `--prefer-dist`.
#
# Via WPCS.
#
/.github export-ignore
/.phpcs.xml export-ignore
/.phpcs export-ignore
/phpunit.xml export-ignore
/tests export-ignore
/configure.php export-ignore
/Makefile export-ignore

#
# Auto detect text files and perform LF normalization.
#
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
#
* text=auto

#
# The above will handle all files not found below.
#
*.md text
*.php text
*.inc text
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "09:00"
timezone: "America/New_York"
ignore:
- dependency-name: "@wordpress/*"
11 changes: 11 additions & 0 deletions .github/workflows/built-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Create a -built branch

on:
push:
branches:
- main
- develop

jobs:
built-branch:
uses: alleyinteractive/.github/.github/workflows/built-branch.yml@main
15 changes: 15 additions & 0 deletions .github/workflows/built-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Built Release

on:
push:
branches:
- develop
- main
- production

jobs:
built-release:
uses: alleyinteractive/.github/.github/workflows/built-release.yml@main
if: ${{ github.repository != 'alleyinteractive/create-wordpress-plugin' }}
with:
node: 16
16 changes: 16 additions & 0 deletions .github/workflows/coding-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Code Quality

on:
push:
branches:
- main
pull_request:
# Uncomment and edit the following to run on a schedule.
# schedule:
# - cron: '45 5 * * 0' # Run once per week at 5:45am UTC on Sundays.

jobs:
code-quality:
uses: alleyinteractive/.github/.github/workflows/php-code-quality.yml@main
with:
php: '8.2'
16 changes: 16 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Coding Standards

on:
push:
branches:
- develop
pull_request:
# Uncomment and edit the following to run on a schedule.
# schedule:
# - cron: '0 5 * * 0' # Run once per week at 5am UTC on Sundays.

jobs:
coding-standards:
uses: alleyinteractive/.github/.github/workflows/php-coding-standards.yml@main
with:
php: '8.2'
11 changes: 11 additions & 0 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: dependabot-auto-approve
on:
pull_request:

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
uses: alleyinteractive/.github/.github/workflows/dependabot-auto-approve.yml@main
10 changes: 10 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: dependabot-auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
uses: alleyinteractive/.github/.github/workflows/dependabot-auto-merge.yml@main
34 changes: 34 additions & 0 deletions .github/workflows/merge-develop-to-scaffold.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Merge Develop to Scaffold Branch

on:
push:
branches:
- develop
- remove-scaffold

jobs:
merge-develop-to-scaffold:
name: merge develop to scaffold
runs-on: ubuntu-latest

steps:
- name: Merge develop to scaffold
shell: bash
env:
DEVELOP_BRANCH: develop
SCAFFOLD_BRANCH: scaffold

TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
echo "Cloning alleyinteractive/create-wordpress-plugin..."
git clone --recursive --quiet https://[email protected]/alleyinteractive/create-wordpress-plugin.git create-wordpress-plugin -b $SCAFFOLD_BRANCH
cd create-wordpress-plugin
git fetch origin $DEVELOP_BRANCH
git fetch origin $SCAFFOLD_BRANCH
git merge origin/$DEVELOP_BRANCH --no-edit
git push -u origin $SCAFFOLD_BRANCH
16 changes: 16 additions & 0 deletions .github/workflows/node-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Node Tests

on:
push:
branches:
- develop
pull_request:
# Uncomment and edit the following to run on a schedule.
# schedule:
# - cron: '15 5 * * 0' # Run once per week at 5:15am UTC on Sundays.

jobs:
node-tests:
uses: alleyinteractive/.github/.github/workflows/node-tests.yml@main
with:
run-audit: true
21 changes: 21 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Testing Suite

on:
push:
branches:
- develop
pull_request:
# Uncomment and edit the following to run on a schedule.
# schedule:
# - cron: '30 5 * * 0' # Run once per week at 5:30am UTC on Sundays.

jobs:
php-tests:
strategy:
matrix:
php: [8.0, 8.1, 8.2]
wordpress: ["latest"]
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@main
with:
php: ${{ matrix.php }}
wordpress: ${{ matrix.wordpress }}
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
19 changes: 19 additions & 0 deletions .github/workflows/upgrade-wordpress-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Update WordPress Plugin

on:
schedule:
- cron: '0 6 1 * *' # Run on the first day of every month at 6am UTC.

permissions:
contents: write
pull-requests: write

jobs:
update-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: alleyinteractive/[email protected]
with:
plugin-file: 'plugin.php'
upgrade-npm-dependencies: "true"
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build files
build
vendor
composer.lock
node_modules

# Log files
*.log

# Cache files
.phpcs/*.json
.phpunit.result.cache

# Ignore temporary OS files
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.thumbsdb

# IDE files
*.code-workspace
.idea
.vscode
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
Loading

0 comments on commit 25ad965

Please sign in to comment.