Skip to content

Commit aeb7169

Browse files
committed
Merge branch 'develop' into trunk
2 parents a2fe565 + a42b469 commit aeb7169

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+14862
-37672
lines changed

.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.browserslistrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.distignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Directories
2+
/.git
3+
/.github
4+
/.wordpress-org
5+
/node_modules
6+
/src
7+
/vendor
8+
9+
# Files
10+
.distignore
11+
.editorconfig
12+
.eslintrc
13+
.gitignore
14+
.phpcs.xml
15+
CHANGELOG.md
16+
CODE_OF_CONDUCT.md
17+
composer.json
18+
composer.lock
19+
CONTRIBUTING.md
20+
CREDITS.md
21+
LICENSE.md
22+
package.json
23+
package-lock.json
24+
README.md

.eslintrc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"extends": "@10up/eslint-config",
3-
"plugins": [
4-
"react"
5-
],
6-
"rules": {
7-
"react/jsx-uses-react": 2,
8-
"react/jsx-uses-vars": 2
9-
}
2+
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
3+
"globals": {
4+
"mapkit": "writable",
5+
"CustomEvent": "readonly",
6+
"Event": "readonly"
7+
},
8+
"ignorePatterns": ["**/vendor/**"]
109
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
tag:
7+
name: New release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
- name: Build
13+
run: |
14+
npm install
15+
npm run build
16+
- name: WordPress Plugin Deploy
17+
id: deploy
18+
uses: 10up/action-wordpress-plugin-deploy@master
19+
with:
20+
generate-zip: true
21+
env:
22+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
23+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
24+
- name: Upload release asset
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
31+
asset_name: ${{ github.event.repository.name }}.zip
32+
asset_content_type: application/zip

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- trunk
8+
pull_request:
9+
branches:
10+
- develop
11+
12+
jobs:
13+
eslint:
14+
name: eslint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: install node v12
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
- name: npm install
23+
run: npm install
24+
- name: eslint
25+
uses: icrawl/action-eslint@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
phpcs:
29+
name: phpcs
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
- name: composer install
35+
run: composer install
36+
- name: PHPCS check
37+
uses: chekalsky/phpcs-action@v1
38+
with:
39+
phpcs_bin_path: './vendor/bin/phpcs'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Update asset/readme on WordPress.org
2+
on:
3+
push:
4+
branches:
5+
- trunk
6+
jobs:
7+
master:
8+
name: Push to trunk
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: WordPress.org plugin asset/readme update
13+
uses: 10up/action-wordpress-plugin-asset-update@master
14+
env:
15+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
16+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
22
bower_components
33
release
4+
build
45
vendor
56
composer.lock
67
phpunit.xml

.phpcs.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="10up-autoshare">
3+
<description>Extension of the WordPress standard</description>
4+
<arg name="extensions" value="php" />
5+
<file>.</file>
6+
<rule ref="WordPress">
7+
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
8+
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
9+
</rule>
10+
<exclude-pattern>build</exclude-pattern>
11+
<exclude-pattern>node_modules</exclude-pattern>
12+
<exclude-pattern>vendor</exclude-pattern>
13+
</ruleset>

.wordpress-org/banner-1544x500.png

379 KB
Loading

0 commit comments

Comments
 (0)