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

Framework: Merge editor and blocks modules into a single editor module #2795

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ status "Creating archive..."
zip -r gutenberg.zip \
gutenberg.php \
lib/*.php \
blocks/library/*/*.php \
editor/blocks/*/*.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/block-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/blocks/*/index.php' ) as $block_logic ) {
require_once $block_logic;
}

Expand Down
Loading