Skip to content

Commit 539fe4f

Browse files
committed
Release: 0.1.0.
1 parent 3f59aca commit 539fe4f

File tree

8 files changed

+154
-11
lines changed

8 files changed

+154
-11
lines changed

.distignore

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
.git/
22
.github/
33
.vscode/
4+
.wordpress-org/
5+
.phpcs/
6+
47
node_modules/
5-
vendor/
6-
.prettierrc
7-
.distignore
8+
tests/
9+
bin/
10+
811
.gitignore
12+
.distignore
13+
14+
.prettierrc
15+
.renovaterc
16+
.npmrc
17+
18+
.wp-env.json
19+
20+
composer.json
21+
composer.lock
22+
package.json
23+
package-lock.json
24+
25+
*.zip
26+
*.tar.gz
27+
*.sql
28+
*.xml
29+
*.log
30+
31+
.DS_Store
32+
Thumbs.db
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build and release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
tag:
9+
name: 🚛 Build and release
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: 🕶️ Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: 🤮 Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 8
20+
coverage: none
21+
extensions: mbstring, intl
22+
tools: composer:v2
23+
24+
- name: 📦 Download dependencies
25+
run: |
26+
composer install --no-dev --optimize-autoloader
27+
28+
- name: 🗃️ Create artifact
29+
run: |
30+
mkdir plugin-build
31+
composer archive -vvv --format=zip --file="plugin-build/wp-graphql-bebuilder"
32+
33+
- name: 🚛 Upload artifact
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: wp-graphql-bebuilder
37+
path: plugin-build/wp-graphql-bebuilder.zip
38+
39+
- name: 🚀 Upload release asset
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
files: plugin-build/wp-graphql-bebuilder.zip
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
1+
# dependencies
2+
vendor/
3+
node_modules/
4+
.pnp/
5+
.pnp.js
6+
7+
# testing
8+
coverage/
9+
10+
# production
11+
build/
12+
.env.local
13+
.zip
14+
.tar.gz
15+
16+
# misc
117
.DS_Store
218
Thumbs.db
19+
20+
# debug
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# deployment
26+
.vercel
27+
28+
# wordpress
329
wp-cli.local.yml
4-
node_modules/
30+
.idea*
531
*.sql
632
*.tar.gz
733
*.zip
8-
.idea*
9-
wp-content/
10-
vendor/
34+
35+
# typescript
36+
*.tsbuildinfo

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.renovaterc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"github>NordcomInc/renovate-config"
4+
]
5+
}

composer.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,32 @@
2222
"squizlabs/php_codesniffer": "^3.7"
2323
},
2424
"require": {
25-
"phpcompatibility/phpcompatibility-wp": "^2.1"
25+
"phpcompatibility/phpcompatibility-wp": "^2.1",
26+
"php": ">=8"
2627
},
2728
"config": {
2829
"allow-plugins": {
2930
"dealerdirect/phpcodesniffer-composer-installer": true
30-
}
31+
},
32+
"platform": {
33+
"php": "8"
34+
},
35+
"process-timeout": 0,
36+
"optimize-autoloader": true
37+
},
38+
"archive": {
39+
"name": "wp-graphql-bebuilder",
40+
"exclude": [
41+
"/.*",
42+
"!.wordpress-org",
43+
"!vendor",
44+
"plugin-build",
45+
"node_modules",
46+
"/composer.json",
47+
"/composer.lock",
48+
"/package.json",
49+
"/package-lock.json",
50+
"/phpcs.xml"
51+
]
3152
}
3253
}

composer.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,20 @@ License: MIT
1010
License URI: https://github.com/NordcomInc/wp-graphql-bebuilder/blob/main/LICENSE
1111

1212
A WordPress plugin to expose BeBuilder page objects through WPGraphQL.
13+
14+
== Description ==
15+
16+
Access BeBuilder page components though the WordPress GraphQL API.
17+
The components are exposed as JSON strings as the field `mfnItems`
18+
on the Page object.
19+
20+
== NOTE ==
21+
22+
For this plugin to do anything at all you're required to have a theme that
23+
provides the page builder "BeBuilder". This won't magically give that you.
24+
25+
== Changelog ==
26+
27+
= 0.1.0 =
28+
* Initial release!
29+
* Access the json objects through the `mfnItems` field on the `Page` object.

0 commit comments

Comments
 (0)