Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master back into fork #1

Merged
merged 146 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
589a634
Align Spinner circles in RTL locales (#14418)
Aljullu Mar 14, 2019
dc03691
Improve handling of transpiled packages in unit tests (#14432)
gziolo Mar 14, 2019
244d7ce
Scripts: use default babel if none is found in project (#14168)
nosolosw Mar 14, 2019
7964f38
Block Editor: Update Block Editor classNames to convention (#14420)
aduth Mar 14, 2019
9a93e6a
Use only one button for Set featured image and image preview. (#14415)
afercia Mar 14, 2019
176fdaf
Docs: Add anchor link to section in scripts readme (#14439)
mkaz Mar 15, 2019
d21e382
Edit Post: Add block management modal (#14224)
aduth Mar 15, 2019
3cc3c89
Update/e2e tests options (#14129)
draganescu Mar 15, 2019
2dad4ef
Fix: Regression: Template lock option is not taken into consideration…
jorgefilipecosta Mar 15, 2019
790cb30
RichText: remove selection change listener during composition (#14449)
ellatrix Mar 15, 2019
3848167
Input Interaction: fix buffer for the triggering of multi-select (#14…
ellatrix Mar 15, 2019
6c8486f
Fix typos (#14451)
Soean Mar 15, 2019
542151d
Input Interaction: only consider selection at edge if directed toward…
ellatrix Mar 15, 2019
7723b06
Components: update CheckboxControl readme (#14153)
davewhitley Mar 15, 2019
08bf9e1
Use a left border for hover + selection states (#14145)
kjellr Mar 15, 2019
39bd834
Input Interaction: allow outer vertical edge to be selected (#14453)
ellatrix Mar 15, 2019
7779964
Skip test case packages/e2e-tests/specs/plugins/inner-blocks-allowed-…
jorgefilipecosta Mar 15, 2019
1019c17
DOM: Limit single tabbable radio input by name (#14128)
aduth Mar 15, 2019
09e72df
Update MenuItemsChoice readme (#14465)
kjellr Mar 15, 2019
6f7fc09
Add MenuGroup design documentation (#14466)
kjellr Mar 15, 2019
6a9665a
Fix: use checkValidity() to perform the validation in RangeControl (#…
jorgefilipecosta Mar 16, 2019
f3148cc
Fix typo on hooks package readme. (#14471)
rsusanto Mar 16, 2019
5b37ee7
Better center tooltip content. (#14473)
afercia Mar 16, 2019
54a5f42
Added language for block style to the tooltip on block transformation…
mapk Mar 18, 2019
cafb041
Fix: Pasting captions without an image fails (#14365)
dmsnell Mar 18, 2019
98c97a7
Components: Add onFocusLoss option to withFocusReturn (#14444)
aduth Mar 18, 2019
74c0ed7
Docs: Update JavaScript build and setup with wp-scripts updates (#14440)
mkaz Mar 18, 2019
5e74833
Raw handling: update strikethrough (#14430)
ellatrix Mar 18, 2019
fec7ea1
Add ability to transform [audio] shortcodes to aidio blocks (#14045)
Mar 18, 2019
c7801a8
Add greater than symbol to attribute escaping (#9963)
johngodley Mar 18, 2019
bc8adf7
Begin adding support for the `prefers-reduced-motion` setting, Add a1…
kjellr Mar 18, 2019
7748b8e
Docs: Include clarification about using @wordpress/babel-plugin-impor…
gziolo Mar 18, 2019
15b20c7
Improve openAllBlockInserterCategories function; Fix intermittent fai…
jorgefilipecosta Mar 18, 2019
6e340d6
Fix the webpack shortcode config (#14485)
youknowriad Mar 18, 2019
15b87b0
Docs: Polish @wordpress/scripts README and related tutorial (#14484)
gziolo Mar 18, 2019
08eafa6
Docs: Update @wordpress/scripts with language improvements (#14488)
gziolo Mar 18, 2019
a6c4db8
Fix missing CSS in the Classic Block (#12441)
azaozz Mar 18, 2019
8cc93c9
Bump plugin version to 5.3.0-rc.1 (#14489)
jorgefilipecosta Mar 18, 2019
cff0acf
Exculde test files when rebuilding packages (#14468)
Jackie6 Mar 18, 2019
1936caa
Add new action REPLACE_INNER_BLOCKS for InnerBlocks replacement (#14291)
jorgefilipecosta Mar 18, 2019
7e5f1d8
Minor: Formatting fix in MenuGroup Readme (#14490)
kjellr Mar 18, 2019
c34d6b7
Core Columns Block - adds ability to vertically align all the columns…
getdave Mar 19, 2019
e0cdf68
Panel: Add design documentation to readme (#14504)
davewhitley Mar 19, 2019
d6ad848
Add playsInline option in Video block (#14500)
Mar 20, 2019
fb8abfe
Added missing reference to lodash (#14516)
jakeparis Mar 20, 2019
d661666
Update plugin version to 5.3 (#14523)
jorgefilipecosta Mar 20, 2019
4d65116
Blocks API: Add default implementation for save setting (#14510)
gziolo Mar 20, 2019
233446b
Improve appearance of hover on colored backgrounds. (#14501)
kjellr Mar 20, 2019
27c0d00
Docs: Clarify usage of @wordpress/babel-plugin-import-jsx-pragma with…
gziolo Mar 20, 2019
8c51368
Update package versions; Update unreleased change log versions. (#14538)
jorgefilipecosta Mar 20, 2019
c7345ee
Use a generic inserter title from mobile inserters (#14493)
youknowriad Mar 21, 2019
d0a11c9
Replace external image url by base64 encoded image in CSS (#14544)
youknowriad Mar 21, 2019
95642a4
Extract CSS resets to reusable mixins (#14509)
youknowriad Mar 21, 2019
9d3292b
Remove dead / unreachable code in `core/calendar` block renderer. (#1…
svenvanhal Mar 21, 2019
429558a
Try: Move color and font size from captions to theme (#14366)
jasmussen Mar 21, 2019
8260725
Merge mobile development branch into master (v2) (#14503)
Tug Mar 21, 2019
98a19b6
Remove @wordpress/api-fetch usage from the block editor module (#14527)
youknowriad Mar 21, 2019
91269ae
RichText: improve format boundary style (#14519)
ellatrix Mar 21, 2019
1b10520
Paste: check plain text for gutenberg content (#14536)
ellatrix Mar 21, 2019
eee91f6
Make ClipboardButton inside a block work correctly in Safari (#7106)
mirka Mar 21, 2019
2ebc98e
Add an option to configure site constants (#14371)
gziolo Mar 22, 2019
475087c
Input Interaction: always expand single line selection vertically (#1…
ellatrix Mar 22, 2019
31242d3
Make prefix match case insensitive (#14565)
nosolosw Mar 22, 2019
3f28c95
Refactor setupEditor effects to actions (#14513)
nerrad Mar 22, 2019
f4de109
Add: Generic end 2 end test to the block transforms. (#12336)
jorgefilipecosta Mar 22, 2019
c1edba2
Fix the post title focus style in the default mode (#14572)
youknowriad Mar 22, 2019
67994cc
Use MenuItem instead of IconButton (#14569)
nosolosw Mar 22, 2019
dadd863
[Mobile]: Avoid crash rotating Android devices. (#14576) (#14582)
pinarol Mar 22, 2019
ab136c2
Bootstrap some documentation for the block editor module (#14566)
youknowriad Mar 22, 2019
9bcf036
Plugin: Account for null return of `get_current_screen` (#14558)
aduth Mar 22, 2019
c619130
Remove id, infoid, label and aria-describedby from MenuItem (#14423)
Jackie6 Mar 22, 2019
1d22b84
Project management: Refinements to CODEOWNERS file (#14575)
gziolo Mar 23, 2019
e7141f9
Typo fix (#14597)
elhardoum Mar 25, 2019
8625b82
Try implementing a built-in Gutenberg playground (#14497)
youknowriad Mar 25, 2019
4c0d219
Fix react warning for instanceId prop on a DOM element (<Button> comp…
nerrad Mar 25, 2019
f779b93
Fix uncaught TypeError in Columns block (#14605)
nerrad Mar 25, 2019
f9027da
Fix: Bug Affecting Widgets without description (#14587)
jorgefilipecosta Mar 25, 2019
bd381c4
Blocks: Re-register core blocks via build copy prefixing (#13521)
aduth Mar 25, 2019
d718a97
Add info on how to extend webpack.config.js (#14590)
mor10 Mar 25, 2019
3c1fe58
Gallery Block: Add Media Library button to the upload new image area …
jorgefilipecosta Mar 25, 2019
39d435b
Fix: Legacy Widgets description of "callback widgets" is not shown. (…
jorgefilipecosta Mar 25, 2019
7ec933b
Docs: Clarify "Experimental and Unstable APIs" guidelines (#14557)
aduth Mar 26, 2019
57c2ab3
Updated the "Move to Trash" button (#14591)
mapk Mar 26, 2019
186ce11
wp.element - export lazy and Suspense (#14412)
Mar 26, 2019
59e56dc
Move the reusable blocks buttons to the editor module (#14387)
youknowriad Mar 26, 2019
2e6199d
Refactor the MediaUpload components to check upload permissions by ch…
youknowriad Mar 26, 2019
9035024
Replace verse block icon. (#14622)
kjellr Mar 26, 2019
c36069a
Fix radio button appearance on small screens. (#14624)
kjellr Mar 26, 2019
2c1fe1a
Fix last mobile merge into master (#14620)
Tug Mar 26, 2019
8a20ad3
Remove componentWillMount from LatestPostsEdit (#14637)
notnownikki Mar 26, 2019
081f130
Disable SCRIPT_DEBUG for local e2e tests run (#14638)
gziolo Mar 26, 2019
8243a1c
Block library: Standardize align and className attributes for dynamic…
gziolo Mar 26, 2019
1f0fea9
Testing: Add ESLint restricted syntax for truthy length rendering (#1…
aduth Mar 26, 2019
59b03c0
Plugin: Regenerate package-lock.json (#14646)
aduth Mar 26, 2019
ba39b5d
data: set up auto-generated API docs (#14277)
nosolosw Mar 27, 2019
b79710b
Send props to Dashicon. (#14631)
etoledom Mar 27, 2019
828fe40
Update heading block on ENTER.key pressed at the end of the current h…
daniloercoli Mar 27, 2019
ac06e57
Improve autogenerated API docs (#14549)
nosolosw Mar 27, 2019
557dca7
Remove/docgen url symbol (#14656)
nosolosw Mar 27, 2019
6c7bb3d
Dos: Add clarifications and fix grammar mistakes. (#14368)
kelin1003 Mar 27, 2019
520c7d1
Edit Post: Remove menu toggling on checkbox, radio buttons (#14456)
aduth Mar 27, 2019
ba64d41
ESLint Plugin: Add rule react-no-unsafe-timeout (#14650)
aduth Mar 27, 2019
8baf2bb
Add documentation for FormFileUpload props (#14661)
jorgefilipecosta Mar 27, 2019
38f521a
Preformatted: save line breaks as characters (#14653)
ellatrix Mar 27, 2019
ea2a0ae
ESLint Plugin: Fix description for valid-sprintf rule (#14666)
aduth Mar 27, 2019
d9768ad
ResizableBox: Make invisible resize handles bigger (#14481)
marekhrabe Mar 27, 2019
1e8d781
Refactor the core/data store to be independent from the registry (#14…
youknowriad Mar 28, 2019
c7f846a
Data Module: Support parent/child registries (#14369)
youknowriad Mar 28, 2019
e4108fc
Input Interaction: better horizontal edge detection (#14462)
ellatrix Mar 28, 2019
bde17b6
Code quality: Remove unnecessary BaseControl usage from video block (…
jorgefilipecosta Mar 28, 2019
1e40b28
Update the alt text description (#14668)
afercia Mar 28, 2019
a66fa9b
Add documentation for MediaPlaceholder props. (#14645)
jorgefilipecosta Mar 28, 2019
a3ef292
Remove negative toolbar position rules from full-aligned blocks. (#14…
kjellr Mar 28, 2019
406baf1
Blocks API: Improve validation after block gets filters applied (#14529)
gziolo Mar 28, 2019
cd2da7d
Update Blocks Tutorial to match Gutenberg Examples (#14584)
mkaz Mar 28, 2019
b629aef
Add @ellatrix to CODEOWNERS file (#14682)
ellatrix Mar 28, 2019
4c600b0
Fix typo on build script. (#14686)
vonloxx Mar 28, 2019
91b0c41
Restore proper radio button appearance on desktop screens. (#14684)
kjellr Mar 28, 2019
95277f6
Fix minor typos in inline docs (#14690)
mkaz Mar 28, 2019
fa7549e
Fix issue with double scrollbar in Fullscreen Mode (#14677)
jasmussen Mar 29, 2019
7431011
Automatically use a subregistry when using the block editor provider …
youknowriad Mar 29, 2019
ae3a09e
Data: Avoid assuming persisted preferences shape (#14692)
aduth Mar 29, 2019
4b503ac
Data: Avoid unsetting insertUsage preference in block editor migratio…
aduth Mar 29, 2019
3214cb4
Fix WordPress embed block resolution (#14658)
notnownikki Mar 29, 2019
fd72892
Retry failing embeds with trailing slash (#14705)
notnownikki Mar 29, 2019
39171ca
Make tests resilient against transforms added by plugins (#14632)
jorgefilipecosta Mar 29, 2019
edf6b37
Allow failures on php versions below 5.5 (#14541)
aaronjorbin Mar 29, 2019
445b39e
Adding design documentation to the Notice readme (#14514)
davewhitley Mar 29, 2019
580fedd
Update TextControl design documentation (#14710)
davewhitley Mar 29, 2019
8d8a285
API Fetch: Fix error on empty OPTIONS preload data (#14714)
aduth Mar 30, 2019
18b4305
Removes unwanted theme specific Column bottom margin (#14614)
getdave Mar 30, 2019
14d0e2c
Add LGPL as an OSS license. (#14734)
pento Apr 1, 2019
806da4a
Fix verse icon (#14723)
Soean Apr 1, 2019
603709d
Bump plugin version to 5.4.0-rc.1 (#14735)
noisysocks Apr 1, 2019
0d58c70
Change 'dependencies' to 'devDependencies'. (#14736)
Apr 1, 2019
f5f77d5
Ensure that insertUsage is always present in preferences (#14706)
gziolo Apr 1, 2019
d32993c
nvm is not an npm module (#14737)
ntwb Apr 1, 2019
fcbeecc
remove unnecessary bottom margin from figcaption (#14731)
m-e-h Apr 1, 2019
a61e351
[14494] - Improve e2e testing docs and add cli args. (#14717)
Apr 1, 2019
ad7d183
Add container [Section] block (#13964)
talldan Apr 1, 2019
88ee4d9
Edit Post: Update PluginBlockSettingsMenuItem to use block-editor cla…
aduth Apr 1, 2019
5f213ce
ESLint Plugin: Add missing react-no-unsafe-timeout CHANGELOG (#14742)
aduth Apr 1, 2019
02d0184
Fix memize option key typo (#14750)
ellatrix Apr 1, 2019
70cc953
NPM Package JSON Lint Config: Remove is-plain-obj dependency (#14751)
aduth Apr 1, 2019
6c9a9b2
Fix: Cover Block: Remove focal point attributes when they are not nee…
jorgefilipecosta Apr 2, 2019
30d3328
Block library: Try to use Babel plugins to inline block.json metadata…
gziolo Apr 2, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
'plugin:jest/recommended',
],
rules: {
'@wordpress/react-no-unsafe-timeout': 'error',
'no-restricted-syntax': [
'error',
// NOTE: We can't include the forward slash in our regex or
Expand Down Expand Up @@ -92,6 +93,10 @@ module.exports = {
selector: 'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)',
message: 'withDispatch must return an object with consistent keys. Avoid performing logic in `mapDispatchToProps`.',
},
{
selector: 'LogicalExpression[operator="&&"][left.property.name="length"][right.type="JSXElement"]',
message: 'Avoid truthy checks on length property rendering, as zero length is rendered verbatim.',
},
],
'react/forbid-elements': [ 'error', {
forbid: [
Expand Down
30 changes: 17 additions & 13 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Documentation
/docs @youknowriad @chrisvanpatten @mkaz @ajitbohra @nosolosw @notnownikki
/docs/designers-developers/developers @youknowriad @gziolo @chrisvanpatten @mkaz @ajitbohra @nosolosw @notnownikki
/docs/designers-developers/designers @youknowriad @chrisvanpatten @mkaz @ajitbohra @nosolosw @notnownikki

# Data
/packages/api-fetch @youknowriad @aduth @nerrad @mmtr
/packages/core-data @youknowriad @gziolo @aduth @nerrad @noisysocks
Expand All @@ -8,13 +13,14 @@
/packages/block-library @youknowriad @gziolo @Soean @ajitbohra @jorgefilipecosta @talldan @noisysocks @notnownikki

# Editor
/packages/annotations @youknowriad @gziolo @aduth @atimmer
/packages/annotations @youknowriad @aduth @atimmer @ellatrix
/packages/autop @youknowriad @aduth
/packages/block-editor @youknowriad @gziolo @talldan @noisysocks @ellatrix
/packages/block-serialization-spec-parser @youknowriad @gziolo @aduth @dmsnell
/packages/block-serialization-default-parser @youknowriad @gziolo @aduth @dmsnell
/packages/blocks @youknowriad @gziolo @aduth @noisysocks
/packages/edit-post @youknowriad @gziolo @talldan @noisysocks
/packages/editor @youknowriad @gziolo @talldan @noisysocks
/packages/blocks @youknowriad @gziolo @aduth @noisysocks @ellatrix
/packages/edit-post @youknowriad @talldan @noisysocks
/packages/editor @youknowriad @talldan @noisysocks
/packages/list-reusable-blocks @youknowriad @aduth @noisysocks
/packages/shortcode @youknowriad @aduth

Expand All @@ -23,12 +29,13 @@

# Tooling
/bin @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra
/docs/tool @youknowriad @gziolo @chrisvanpatten @mkaz @ajitbohra @nosolosw @notnownikki
/packages/babel-plugin-import-jsx-pragma @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra @nosolosw
/packages/babel-plugin-makepot @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra
/packages/babel-preset-default @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra @nosolosw
/packages/browserslist-config @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra
/packages/custom-templated-path-webpack-plugin @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra
/packages/docgen @nosolosw @mkaz
/packages/docgen @nosolosw @mkaz @gziolo
/packages/e2e-test-utils @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra
/packages/e2e-tests @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra @talldan
/packages/eslint-plugin @youknowriad @gziolo @aduth @ntwb @nerrad @ajitbohra @nosolosw
Expand All @@ -53,13 +60,13 @@
/packages/blob @youknowriad @gziolo @aduth
/packages/date @youknowriad @gziolo @aduth
/packages/deprecated @youknowriad @gziolo @aduth
/packages/dom @youknowriad @gziolo @aduth @nosolosw
/packages/dom @youknowriad @gziolo @aduth @nosolosw @ellatrix
/packages/dom-ready @youknowriad @gziolo @aduth
/packages/escape-html @youknowriad @gziolo @aduth
/packages/html-entities @youknowriad @gziolo @aduth
/packages/i18n @youknowriad @aduth @swissspidy
/packages/is-shallow-equal @youknowriad @gziolo @aduth
/packages/keycodes @youknowriad @gziolo @aduth @talldan
/packages/keycodes @youknowriad @gziolo @aduth @talldan @ellatrix
/packages/priority-queue @youknowriad @gziolo @aduth
/packages/token-list @youknowriad @gziolo @aduth
/packages/url @youknowriad @gziolo @aduth @talldan
Expand All @@ -70,16 +77,13 @@
/packages/plugins @youknowriad @gziolo @aduth @adamsilverstein

# Rich Text
/packages/format-library @youknowriad @gziolo @aduth @iseulde @jorgefilipecosta
/packages/rich-text @youknowriad @aduth @iseulde @jorgefilipecosta
/packages/editor/src/components/rich-text @youknowriad @aduth @iseulde @jorgefilipecosta
/packages/format-library @youknowriad @aduth @ellatrix @jorgefilipecosta
/packages/rich-text @youknowriad @aduth @ellatrix @jorgefilipecosta
/packages/block-editor/src/components/rich-text @youknowriad @aduth @ellatrix @jorgefilipecosta

# PHP
/lib @youknowriad @gziolo @aduth

# Documentation
/docs @youknowriad @gziolo @chrisvanpatten @mkaz @ajitbohra @nosolosw @notnownikki

# Styles
*.scss @chrisvanpatten

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ phpcs.xml
yarn.lock
docker-compose.override.yml
/wordpress

playground/dist
.cache
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- ./bin/run-wp-unit-tests.sh

- name: E2E tests (Admin with plugins) (1/2)
env: WP_VERSION=latest POPULAR_PLUGINS=true
env: WP_VERSION=latest SCRIPT_DEBUG=false POPULAR_PLUGINS=true
install:
- ./bin/setup-local-env.sh
script:
Expand All @@ -74,7 +74,7 @@ jobs:
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )

- name: E2E tests (Admin with plugins) (2/2)
env: WP_VERSION=latest POPULAR_PLUGINS=true
env: WP_VERSION=latest SCRIPT_DEBUG=false POPULAR_PLUGINS=true
install:
- ./bin/setup-local-env.sh
script:
Expand All @@ -83,7 +83,7 @@ jobs:
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )

- name: E2E tests (Author without plugins) (1/2)
env: WP_VERSION=latest E2E_ROLE=author
env: WP_VERSION=latest SCRIPT_DEBUG=false E2E_ROLE=author
install:
- ./bin/setup-local-env.sh
script:
Expand All @@ -92,10 +92,22 @@ jobs:
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )

- name: E2E tests (Author without plugins) (2/2)
env: WP_VERSION=latest E2E_ROLE=author
env: WP_VERSION=latest SCRIPT_DEBUG=false E2E_ROLE=author
install:
- ./bin/setup-local-env.sh
script:
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
- npm run build
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
allow_failures:
- name: PHP unit tests (PHP 5.3)
env: WP_VERSION=latest SWITCH_TO_PHP=5.3
script:
- ./bin/run-wp-unit-tests.sh
if: branch = master and type != "pull_request"

- name: PHP unit tests (PHP 5.2)
env: WP_VERSION=latest SWITCH_TO_PHP=5.2
script:
- ./bin/run-wp-unit-tests.sh

16 changes: 14 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ For another version of Windows, or if you prefer to set things up manually, be s
If you have an incompatible version of Node in your development environment, you can use [nvm](https://github.com/creationix/nvm) to change node versions on the command line:

```
npx nvm install
npx nvm use
nvm install
nvm use
```

You also should have the latest release of [npm installed][npm]. npm is a separate project from Node.js and is updated frequently. If you've just installed Node.js which includes a version of npm within the installation you most likely will need also to update your npm installation. To update npm, type this into your terminal: `npm install npm@latest -g`
Expand Down Expand Up @@ -79,6 +79,12 @@ Alternatively, you can use your own local WordPress environment and clone this r

Next, open a terminal (or if on Windows, a command prompt) and navigate to the repository you cloned. Now type `npm install` to get the dependencies all set up. Then you can type `npm run dev` in your terminal or command prompt to keep the plugin building in the background as you work on it.

WordPress comes with specific [debug systems](https://codex.wordpress.org/Debugging_in_WordPress) designed to simplify the process as well as standardize code across core, plugins and themes. It is possible to use environment variables (`WP_DEBUG` and `SCRIPT_DEBUG`) to update a site's configuration constants located in `wp-config.php` file. Both flags can be disabled at any time by running the following command:
```
SCRIPT_DEBUG=false WP_DEBUG=false ./bin/setup-local-env.sh
```
By default, both flags will be set to `true`.

### On A Remote Server

Open a terminal (or if on Windows, a command prompt) and navigate to the repository you cloned. Now type `npm install` to get the dependencies all set up. Once that finishes, you can type `npm run build`. You can now upload the entire repository to your `wp-content/plugins` directory on your web server and activate the plugin from the WordPress admin.
Expand Down Expand Up @@ -108,6 +114,12 @@ You can pick among all the <a href="https://github.com/WordPress/gutenberg/issue

The workflow is documented in greater detail in the [repository management](/docs/contributors/repository-management.md) document.

## Playground

The Gutenberg repository also includes a static Gutenberg playground that allows testing and developing in a WordPress-agnostic context. This is very helpful for developing reusable components and trying generic JavaScript modules without any backend dependency.

You can launch the playground by running `npm run playground:start` locally. The playground should be available on [http://localhost:1234](http://localhost:1234).

## Testing

Gutenberg contains both PHP and JavaScript code and encourages testing and code style linting for both. It also incorporates end-to-end testing using [Google Puppeteer](https://developers.google.com/web/tools/puppeteer/). You can find out more details in [Testing Overview document](/docs/contributors/testing-overview.md).
Expand Down
1 change: 1 addition & 0 deletions assets/stylesheets/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
@mixin edit-post__fade-in-animation($speed: 0.2s, $delay: 0s) {
animation: edit-post__fade-in-animation $speed ease-out $delay;
animation-fill-mode: forwards;
@include reduce-motion;
}
Loading