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 27, 2017
1 parent 9c2d2bd commit b0d8521
Show file tree
Hide file tree
Showing 475 changed files with 675 additions and 667 deletions.
4 changes: 1 addition & 3 deletions bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,15 @@ 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} \
components/build/*.{js,map} \
date/build/*.{js,map} \
editor/build/*.{js,map} \
element/build/*.{js,map} \
i18n/build/*.{js,map} \
utils/build/*.{js,map} \
blocks/build/*.css \
components/build/*.css \
editor/build/*.css \
README.md
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 b0d8521

Please sign in to comment.