-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0eb1788
Showing
41 changed files
with
2,713 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Generate ZIP for Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build PHP | ||
run: composer install --no-dev --optimize-autoloader | ||
|
||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install packages w/ Bun | ||
run: bun install | ||
|
||
- name: Build with Bun | ||
run: bun run build | ||
|
||
- name: Create release ZIP | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
type: 'zip' | ||
filename: 'wp-farcaster.zip' | ||
exclusions: '/*node_modules/* composer.* readme.md package.json .eslintrc.js .nvmrc .stylelintrc.json phpcs.xml tsconfig.json bun.lockb .vscode/ .wordpress-org/ .wordpress-org/* src/ /*.git/* /*.github/*' | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wp-farcaster | ||
path: wp-farcaster.zip | ||
|
||
- name: Upload to release | ||
uses: JasonEtco/upload-to-release@master | ||
with: | ||
args: wp-farcaster.zip application/zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Unzip folder for WP.org | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: unzip -qq wp-farcaster.zip -d wp-farcaster | ||
|
||
- name: Upload plugin to WP.org | ||
uses: 10up/[email protected] | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: wp-farcaster | ||
BUILD_DIR: ./wp-farcaster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Linting | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build PHP | ||
run: composer install --optimize-autoloader | ||
|
||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install packages w/ Bun | ||
run: bun install | ||
|
||
- name: Lint PHP | ||
run: bun run lint:php | ||
|
||
- name: Lint JS | ||
run: bun run lint:js | ||
|
||
- name: Validate types | ||
run: bun run lint:ts | ||
|
||
- name: Lint CSS | ||
run: bun run lint:css | ||
|
||
- name: Lint package.json | ||
run: bun run lint:pkg-json | ||
|
||
- name: Lint Markdown docs | ||
run: bun run lint:md:docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Node modules | ||
node_modules | ||
|
||
# Composer packages | ||
vendor | ||
|
||
# Cache files | ||
.phpcs/*.json | ||
.phpunit.result.cache | ||
|
||
# Build files | ||
build | ||
|
||
# Ignore temporary OS files | ||
.DS_Store | ||
.DS_Store? | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
.thumbsdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": [ "@wordpress/stylelint-config/scss" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"intelephense.files.exclude": [ | ||
"**/.git/**", | ||
"**/.svn/**", | ||
"**/.hg/**", | ||
"**/CVS/**", | ||
"**/.DS_Store/**", | ||
"**/node_modules/**", | ||
"**/bower_components/**", | ||
"**/vendor/**/{Tests,tests}/**", | ||
"**/.history/**", | ||
"**/vendor/**/vendor/**", | ||
"**/.cursor/**" | ||
], | ||
"phpsab.standard": "./phpcs.xml", | ||
"phpsab.executablePathCS": "./vendor/bin/phpcs", | ||
"phpsab.executablePathCBF": "./vendor/bin/phpcbf", | ||
"phpsab.autoRulesetSearch": false, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"css.validate": false, | ||
"less.validate": false, | ||
"scss.validate": false, | ||
"stylelint.validate": [ "css", "scss", "postcss" ], | ||
"stylelint.config": null | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "davisshaver/wp-farcaster", | ||
"description": "WP Farcaster connects your WordPress site to Farcaster.", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-3.0", | ||
"require-dev": { | ||
"automattic/vipwpcs": "^3.0", | ||
"wp-coding-standards/wpcs": "^3.0", | ||
"dealerdirect/phpcodesniffer-composer-installer": "*", | ||
"phpcompatibility/phpcompatibility-wp": "*" | ||
}, | ||
"autoload": { | ||
"classmap": [ | ||
"./includes" | ||
] | ||
}, | ||
"config": { | ||
"platform": { | ||
"php": "8.0" | ||
}, | ||
"allow-plugins": { | ||
"composer/installers": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
Oops, something went wrong.