-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rnmobile/develop' of https://github.com/WordPress/guten…
…berg into rnmobile/Placeholder-is-missing-on-Heading-block * 'rnmobile/develop' of https://github.com/WordPress/gutenberg: Get the last master changes into the mobile develop branch (#14375)
- Loading branch information
Showing
951 changed files
with
34,464 additions
and
18,730 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require( 'path' ); | ||
const { promisify } = require( 'util' ); | ||
const spawn = promisify( require( 'child_process' ).spawn ); | ||
|
||
const packages = [ | ||
'a11y', | ||
'autop', | ||
'blob', | ||
'block-editor', | ||
'block-library', | ||
'block-serialization-default-parser', | ||
'blocks', | ||
'compose', | ||
//'data', | ||
'date', | ||
'deprecated', | ||
'dom', | ||
'dom-ready', | ||
'e2e-test-utils', | ||
'edit-post', | ||
'element', | ||
'escape-html', | ||
'html-entities', | ||
'i18n', | ||
'keycodes', | ||
'plugins', | ||
'priority-queue', | ||
'redux-routine', | ||
'rich-text', | ||
'shortcode', | ||
'url', | ||
'viewport', | ||
'wordcount', | ||
]; | ||
|
||
const getArgsForPackage = ( packageName ) => { | ||
switch ( packageName ) { | ||
case 'rich-text': | ||
return [ | ||
`packages/${ packageName }/src/index.js`, | ||
`--output packages/${ packageName }/README.md`, | ||
'--to-token', | ||
'--ignore "unstable|experimental|^apply$|^changeListType$|^charAt$|^getSelectionStart$|^getSelectionEnd$|^indentListItems$|^insertLineBreak$|^insertLineSeparator$|^isEmptyLine$|^LINE_SEPARATOR$|^outdentListItems$"', | ||
]; | ||
default: | ||
return [ | ||
`packages/${ packageName }/src/index.js`, | ||
`--output packages/${ packageName }/README.md`, | ||
'--to-token', | ||
'--ignore "unstable|experimental"', | ||
]; | ||
} | ||
}; | ||
|
||
Promise.all( packages.map( async ( packageName ) => { | ||
const args = getArgsForPackage( packageName ); | ||
const pathToDocGen = path.join( __dirname, '..', 'node_modules', '.bin', 'docgen' ); | ||
const { status, stderr } = await spawn( | ||
pathToDocGen, | ||
args, | ||
{ shell: true }, | ||
); | ||
if ( status !== 0 ) { | ||
throw stderr.toString(); | ||
} | ||
} ) ).catch( ( error ) => { | ||
process.stderr.write( `${ error }\n` ); | ||
process.exit( 1 ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.