Skip to content

Commit

Permalink
Framework: Merge editor and blocks modules into a single editor module
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 26, 2017
1 parent 9c2d2bd commit 21adb83
Show file tree
Hide file tree
Showing 472 changed files with 668 additions and 658 deletions.
2 changes: 1 addition & 1 deletion bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mv gutenberg.tmp.php gutenberg.php
zip -r gutenberg.zip \
gutenberg.php \
lib/*.php \
blocks/library/*/*.php \
editor/library/*/*.php \
post-content.js \
$vendor_scripts \
blocks/build/*.{js,map} \
Expand Down
2 changes: 1 addition & 1 deletion bin/create-php-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const phpegjs = require( 'phpegjs' );
const fs = require( 'fs' );
const path = require( 'path' );

const peg = fs.readFileSync( 'blocks/api/post.pegjs', 'utf8' );
const peg = fs.readFileSync( 'editor/api/post.pegjs', 'utf8' );

const parser = pegjs.generate(
peg,
Expand Down
2 changes: 1 addition & 1 deletion bin/get-server-block-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function register_block_type( $name, $args = array() ) {
}

// Register server-side code for individual blocks.
foreach ( glob( dirname( dirname( __FILE__ ) ) . '/blocks/library/*/index.php' ) as $block_logic ) {
foreach ( glob( dirname( dirname( __FILE__ ) ) . '/editor/library/*/index.php' ) as $block_logic ) {
require_once $block_logic;
}

Expand Down
Loading

0 comments on commit 21adb83

Please sign in to comment.