Skip to content

Commit

Permalink
Merge changes published in the Gutenberg plugin "release/9.6" branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 17, 2020
1 parent d2e301e commit b55817f
Show file tree
Hide file tree
Showing 1,430 changed files with 50,880 additions and 36,779 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.cache
build
build-module
build-types
node_modules
packages/block-serialization-spec-parser/parser.js
packages/e2e-tests/plugins
Expand Down
48 changes: 25 additions & 23 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
/docs/designers-developers/designers @chrisvanpatten @mkaz @ajitbohra

# Data
/packages/api-fetch @youknowriad @nerrad @mmtr
/packages/core-data @youknowriad @nerrad
/packages/data @youknowriad @nerrad @coderkevin
/packages/redux-routine @youknowriad @nerrad
/packages/api-fetch @nerrad @mmtr
/packages/core-data @nerrad
/packages/data @nerrad @coderkevin
/packages/redux-routine @nerrad
/packages/data-controls @nerrad

# Blocks
/packages/block-library @Soean @ajitbohra @talldan
/packages/block-library @ajitbohra @talldan
/packages/block-library/src/gallery @mkevins
/packages/block-library/src/social-links @mkaz
/packages/block-library/src/social-link @mkaz
Expand All @@ -20,32 +20,32 @@
# Editor
/packages/annotations @atimmer @ellatrix
/packages/autop
/packages/block-editor @youknowriad @ellatrix
/packages/block-editor @ellatrix
/packages/block-serialization-spec-parser @dmsnell
/packages/block-serialization-default-parser @dmsnell
/packages/blocks @youknowriad @ellatrix
/packages/blocks @ellatrix
/packages/edit-post
/packages/editor
/packages/list-reusable-blocks @youknowriad
/packages/list-reusable-blocks
/packages/shortcode
/packages/block-directory
/packages/interface
/packages/media-utils
/packages/server-side-render

# Widgets
/packages/edit-widgets @youknowriad @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726
/packages/edit-widgets @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726

# Navigation
/packages/edit-navigation @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726

# Full Site Editing
/packages/edit-site @youknowriad
/packages/edit-site

# Tooling
/bin @ntwb @nerrad @ajitbohra
/bin/api-docs @ntwb @nerrad @ajitbohra @nosolosw
/docs/tool @youknowriad @chrisvanpatten @ajitbohra @nosolosw
/docs/tool @chrisvanpatten @ajitbohra @nosolosw
/packages/babel-plugin-import-jsx-pragma @gziolo @ntwb @nerrad @ajitbohra
/packages/babel-plugin-makepot @ntwb @nerrad @ajitbohra
/packages/babel-preset-default @gziolo @ntwb @nerrad @ajitbohra
Expand All @@ -61,15 +61,15 @@
/packages/jest-puppeteer-axe @gziolo @ntwb @nerrad @ajitbohra
/packages/library-export-default-webpack-plugin @gziolo @ntwb @nerrad @ajitbohra
/packages/npm-package-json-lint-config @gziolo @ntwb @nerrad @ajitbohra
/packages/postcss-themes @youknowriad @ntwb @nerrad @ajitbohra
/packages/postcss-themes @ntwb @nerrad @ajitbohra
/packages/scripts @gziolo @ntwb @nerrad @ajitbohra
/packages/dependency-extraction-webpack-plugin @gziolo
/packages/prettier-config @ntwb @gziolo

# UI Components
/packages/components @youknowriad @ajitbohra @jaymanpandya @chrisvanpatten
/packages/compose @youknowriad @ajitbohra @jaymanpandya
/packages/element @youknowriad @ajitbohra @jaymanpandya
/packages/components @ajitbohra @jaymanpandya @chrisvanpatten
/packages/compose @ajitbohra @jaymanpandya
/packages/element @ajitbohra @jaymanpandya
/packages/notices @ajitbohra @jaymanpandya
/packages/nux @ajitbohra @jaymanpandya
/packages/viewport @ajitbohra @jaymanpandya
Expand All @@ -78,18 +78,18 @@
/packages/primitives

# Utilities
/packages/a11y @youknowriad
/packages/a11y
/packages/blob
/packages/date
/packages/deprecated @youknowriad
/packages/deprecated
/packages/dom @ellatrix
/packages/dom-ready
/packages/escape-html
/packages/html-entities
/packages/i18n @swissspidy
/packages/is-shallow-equal
/packages/keycodes @talldan @ellatrix
/packages/priority-queue @youknowriad
/packages/priority-queue
/packages/token-list
/packages/url @talldan
/packages/wordcount
Expand All @@ -101,19 +101,21 @@
/packages/plugins @gziolo @adamsilverstein

# Rich Text
/packages/format-library @ellatrix @etoledom @cameronvoell @guarani
/packages/rich-text @ellatrix @etoledom @cameronvoell @guarani
/packages/block-editor/src/components/rich-text @ellatrix @etoledom @cameronvoell @guarani
/packages/format-library @ellatrix @cameronvoell @guarani
/packages/rich-text @ellatrix @cameronvoell @guarani
/packages/block-editor/src/components/rich-text @ellatrix @cameronvoell @guarani

# Project Management
/.github @youknowriad @mapk @karmatosed
/.github @mapk @karmatosed
/packages/project-management-automation

# wp-env
/packages/env @epiqueras @noahtallen
/packages/env @noahtallen

# PHP
/lib @timothybjacobs @spacedmonkey
/lib/global-styles.php @timothybjabocs @spacedmonkey @nosolosw
/lib/experimental-default-theme.json @timothybjabocs @spacedmonkey @nosolosw

# Native (Unowned)
*.native.js @ghost
Expand Down
12 changes: 12 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Gutenberg Project Support

Welcome to Gutenberg, a WordPress project. We hope you join us in creating the future platform for publishing; all are welcome here.

* Please see the [Contributing Guidelines](https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md) for additional information on how to contribute.

* As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://github.com/WordPress/gutenberg/blob/master/CODE_OF_CONDUCT.md).

* Join us on Slack for real-time communication, it is where maintainers coordinate around the project. To get started using Slack, see: https://make.wordpress.org/chat/

* For general WordPress support with the core editor, see the [WordPress.org support forums](https://wordpress.org/support/) — it is highly active and well maintained.
49 changes: 49 additions & 0 deletions .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build Gutenberg Plugin Zip

on:
pull_request:
paths-ignore:
- '**.md'
push:
branches: [master]
tags:
- 'v*'
paths-ignore:
- '**.md'

jobs:
build:
name: Build Release Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Build Gutenberg plugin ZIP file
run: ./bin/build-plugin-zip.sh
env:
NO_CHECKS: 'true'

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: gutenberg-plugin
path: ./gutenberg.zip
2 changes: 1 addition & 1 deletion .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
fetch-depth: 1

- uses: preactjs/compressed-size-action@v1
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "{build/**/*.js,build/**/*.css}"
2 changes: 1 addition & 1 deletion .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
timeout-minutes: 3
steps:
- name: Get all workflow ids and set to env variable
run: echo ::set-env name=WORKFLOW_IDS_TO_CANCEL::$(curl https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows -s | jq -r '.workflows | map(.id|tostring) | join(",")')
run: echo "WORKFLOW_IDS_TO_CANCEL=$(curl https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows -s | jq -r '.workflows | map(.id|tostring) | join(",")')" >> $GITHUB_ENV

- uses: styfle/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 12.x
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 14.x

- name: npm install, build, format and lint
run: |
Expand Down
138 changes: 14 additions & 124 deletions .github/workflows/end2end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,92 +10,16 @@ on:
- '**.md'

jobs:
admin-1:
name: Admin - 1
admin:
name: Admin - ${{ matrix.part }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Npm install and build
run: |
npm ci
FORCE_REDUCED_MOTION=true npm run build
- name: Install WordPress
run: |
chmod -R 767 ./ # TODO: Possibly integrate in wp-env
npm run wp-env start
- name: Running the tests
run: |
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 0' < ~/.jest-e2e-tests )
admin-2:
name: Admin - 2

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Npm install and build
run: |
npm ci
FORCE_REDUCED_MOTION=true npm run build
- name: Install WordPress
run: |
chmod -R 767 ./ # TODO: Possibly integrate in wp-env
npm run wp-env start
- name: Running the tests
run: |
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 1' < ~/.jest-e2e-tests )
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4]

admin-3:
name: Admin - 3

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Expand All @@ -113,10 +37,10 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 12.x
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 14.x

- name: Npm install and build
run: |
Expand All @@ -131,45 +55,11 @@ jobs:
- name: Running the tests
run: |
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 2' < ~/.jest-e2e-tests )
admin-4:
name: Admin - 4

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == ${{ matrix.part }} - 1' < ~/.jest-e2e-tests )
- name: Use Node.js 12.x
uses: actions/setup-node@v1
- name: Archive debug artifacts (screenshots, HTML snapshots)
uses: actions/upload-artifact@v2
if: always()
with:
node-version: 12.x

- name: Npm install and build
run: |
npm ci
FORCE_REDUCED_MOTION=true npm run build
- name: Install WordPress
run: |
chmod -R 767 ./ # TODO: Possibly integrate in wp-env
npm run wp-env start
- name: Running the tests
run: |
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
$( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 4 == 3' < ~/.jest-e2e-tests )
name: failures-artifacts
path: artifacts
Loading

0 comments on commit b55817f

Please sign in to comment.