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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dev/scripts/performance-test.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"Cloning gutenberg repository..."
"Cloning gutenberg repository..."
6 changes: 3 additions & 3 deletions .dev/scripts/set-installed-paths.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if [[ -f "vendor/bin/phpcs" ]]; then
vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs
fi
if [[ -f "vendor/bin/phpcs" ]]; then
vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs
fi
42 changes: 21 additions & 21 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
[*.yml]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

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

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
22 changes: 11 additions & 11 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
**/*.min.js
**/*.build.js
**/node_modules/**
**/vendor/**
build
coverage
cypress
node_modules
vendor
**/*.min.js
**/*.build.js
**/node_modules/**
**/vendor/**
build
coverage
cypress
node_modules
vendor


extendify-sdk/*.js
50 changes: 25 additions & 25 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"parser": "babel-eslint",
"globals": {
"_": "readonly",
"wp": "readonly",
"ReactDOM": "readonly"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": [
"eslint:recommended",
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:eslint-comments/recommended",
],
{
"parser": "babel-eslint",
"globals": {
"_": "readonly",
"wp": "readonly",
"ReactDOM": "readonly"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": [
"eslint:recommended",
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:eslint-comments/recommended",
],
}
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Auto detect text files and perform LF normalization
# https://pablorsk.medium.com/be-a-git-ninja-the-gitattributes-file-e58c07c9e915
#
* text eol=LF

# Specify images as binary
*.png binary
*.jpg binary
*.gif binary
24 changes: 12 additions & 12 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: editorskit
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: editorskit
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
150 changes: 75 additions & 75 deletions .github/workflows/development-zip.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
name: Build development zip file
on: push
jobs:
build:
name: Build, test and zip
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0]
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
tools: composer:v1
- name: Get Composer cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer cache
uses: actions/cache@master
with:
path: ${{ steps['composer-cache'].outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Build autoloader
run: composer install --no-dev --prefer-dist
- name: Using Node version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: bootstrap, npm install, build, and test
run: |
npm install
npm run build-assets
touch .devbuild
env:
CI: true
- name: Package
uses: actions/upload-artifact@v2
with:
name: editorskit
retention-days: 10
path: |
${{ github.workspace }}/
!${{ github.workspace }}/node_modules/
!${{ github.workspace }}/.github/
!${{ github.workspace }}/.git/
!${{ github.workspace }}/src/
!${{ github.workspace }}/.editorconfig
!${{ github.workspace }}/.npmignore
!${{ github.workspace }}/.eslintrc.js
!${{ github.workspace }}/.eslintignore
!${{ github.workspace }}/.gitignore
!${{ github.workspace }}/.svgrrc
!${{ github.workspace }}/.prettierrc.js
!${{ github.workspace }}/.prettierignore
!${{ github.workspace }}/.phpcs.xml
!${{ github.workspace }}/webpack.config.js
!${{ github.workspace }}/composer.json
!${{ github.workspace }}/composer.lock
!${{ github.workspace }}/package.json
!${{ github.workspace }}/package-lock.json
!${{ github.workspace }}/readme.md
name: Build development zip file
on: push
jobs:
build:
name: Build, test and zip
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0]
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
tools: composer:v1

- name: Get Composer cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Use Composer cache
uses: actions/cache@master
with:
path: ${{ steps['composer-cache'].outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Build autoloader
run: composer install --no-dev --prefer-dist

- name: Using Node version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: bootstrap, npm install, build, and test
run: |
npm install
npm run build-assets
touch .devbuild
env:
CI: true
- name: Package
uses: actions/upload-artifact@v2
with:
name: editorskit
retention-days: 10
path: |
${{ github.workspace }}/
!${{ github.workspace }}/node_modules/
!${{ github.workspace }}/.github/
!${{ github.workspace }}/.git/
!${{ github.workspace }}/src/
!${{ github.workspace }}/.editorconfig
!${{ github.workspace }}/.npmignore
!${{ github.workspace }}/.eslintrc.js
!${{ github.workspace }}/.eslintignore
!${{ github.workspace }}/.gitignore
!${{ github.workspace }}/.svgrrc
!${{ github.workspace }}/.prettierrc.js
!${{ github.workspace }}/.prettierignore
!${{ github.workspace }}/.phpcs.xml
!${{ github.workspace }}/webpack.config.js
!${{ github.workspace }}/composer.json
!${{ github.workspace }}/composer.lock
!${{ github.workspace }}/package.json
!${{ github.workspace }}/package-lock.json
!${{ github.workspace }}/readme.md
62 changes: 31 additions & 31 deletions .github/workflows/fetch-extendify-latest.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Fetch Extendify and create PR
on: workflow_dispatch
jobs:
fetch-and-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Download and replace code
run: |
# 1. Clean up the existing directory
rm -rf ./extendify-sdk && mkdir ./extendify-sdk && mkdir ./extendify-tmp
# 2. Fetch from .org
curl -LO https://downloads.wordpress.org/plugin/extendify.latest-stable.zip
# 3. Unzip to temp directory
unzip ./extendify.latest-stable.zip -d ./extendify-tmp
# 4. Copy to the sdk directory
cp -R ./extendify-tmp/extendify/* ./extendify-sdk
# 5. Cleanup directories and remove zip
rm -rf ./extendify-tmp && rm ./extendify.latest-stable.zip
# 6. Remove main file header content
php -w ./extendify-sdk/extendify.php > ./ext.tmp && mv ./ext.tmp ./extendify-sdk/extendify.php
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update Extendify Library
title: Update Extendify Library
branch: update-extendify
branch-suffix: random
name: Fetch Extendify and create PR
on: workflow_dispatch
jobs:
fetch-and-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Download and replace code
run: |
# 1. Clean up the existing directory
rm -rf ./extendify-sdk && mkdir ./extendify-sdk && mkdir ./extendify-tmp
# 2. Fetch from .org
curl -LO https://downloads.wordpress.org/plugin/extendify.latest-stable.zip
# 3. Unzip to temp directory
unzip ./extendify.latest-stable.zip -d ./extendify-tmp
# 4. Copy to the sdk directory
cp -R ./extendify-tmp/extendify/* ./extendify-sdk
# 5. Cleanup directories and remove zip
rm -rf ./extendify-tmp && rm ./extendify.latest-stable.zip
# 6. Remove main file header content
php -w ./extendify-sdk/extendify.php > ./ext.tmp && mv ./ext.tmp ./extendify-sdk/extendify.php
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update Extendify Library
title: Update Extendify Library
branch: update-extendify
branch-suffix: random
Loading