Skip to content

Commit

Permalink
Release: 0.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Aug 26, 2023
1 parent 3f59aca commit 539fe4f
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 11 deletions.
30 changes: 27 additions & 3 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
.git/
.github/
.vscode/
.wordpress-org/
.phpcs/

node_modules/
vendor/
.prettierrc
.distignore
tests/
bin/

.gitignore
.distignore

.prettierrc
.renovaterc
.npmrc

.wp-env.json

composer.json
composer.lock
package.json
package-lock.json

*.zip
*.tar.gz
*.sql
*.xml
*.log

.DS_Store
Thumbs.db
44 changes: 44 additions & 0 deletions .github/workflows/upload-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build and release

on:
release:
types: [published]

jobs:
tag:
name: 🚛 Build and release
runs-on: ubuntu-latest

steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v3

- name: 🤮 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8
coverage: none
extensions: mbstring, intl
tools: composer:v2

- name: 📦 Download dependencies
run: |
composer install --no-dev --optimize-autoloader
- name: 🗃️ Create artifact
run: |
mkdir plugin-build
composer archive -vvv --format=zip --file="plugin-build/wp-graphql-bebuilder"
- name: 🚛 Upload artifact
uses: actions/upload-artifact@v3
with:
name: wp-graphql-bebuilder
path: plugin-build/wp-graphql-bebuilder.zip

- name: 🚀 Upload release asset
uses: softprops/action-gh-release@v1
with:
files: plugin-build/wp-graphql-bebuilder.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 30 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
# dependencies
vendor/
node_modules/
.pnp/
.pnp.js

# testing
coverage/

# production
build/
.env.local
.zip
.tar.gz

# misc
.DS_Store
Thumbs.db

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# deployment
.vercel

# wordpress
wp-cli.local.yml
node_modules/
.idea*
*.sql
*.tar.gz
*.zip
.idea*
wp-content/
vendor/

# typescript
*.tsbuildinfo
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
5 changes: 5 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"github>NordcomInc/renovate-config"
]
}
25 changes: 23 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,32 @@
"squizlabs/php_codesniffer": "^3.7"
},
"require": {
"phpcompatibility/phpcompatibility-wp": "^2.1"
"phpcompatibility/phpcompatibility-wp": "^2.1",
"php": ">=8"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"platform": {
"php": "8"
},
"process-timeout": 0,
"optimize-autoloader": true
},
"archive": {
"name": "wp-graphql-bebuilder",
"exclude": [
"/.*",
"!.wordpress-org",
"!vendor",
"plugin-build",
"node_modules",
"/composer.json",
"/composer.lock",
"/package.json",
"/package-lock.json",
"/phpcs.xml"
]
}
}
9 changes: 7 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,20 @@ License: MIT
License URI: https://github.com/NordcomInc/wp-graphql-bebuilder/blob/main/LICENSE

A WordPress plugin to expose BeBuilder page objects through WPGraphQL.

== Description ==

Access BeBuilder page components though the WordPress GraphQL API.
The components are exposed as JSON strings as the field `mfnItems`
on the Page object.

== NOTE ==

For this plugin to do anything at all you're required to have a theme that
provides the page builder "BeBuilder". This won't magically give that you.

== Changelog ==

= 0.1.0 =
* Initial release!
* Access the json objects through the `mfnItems` field on the `Page` object.

0 comments on commit 539fe4f

Please sign in to comment.