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

Convert build procedure to use wp-scripts #65

Merged
merged 9 commits into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions 01-basic-esnext/.babelrc

This file was deleted.

1 change: 1 addition & 0 deletions 01-basic-esnext/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions 01-basic-esnext/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function gutenberg_examples_01_esnext_register_block() {

wp_register_script(
'gutenberg-examples-01-esnext',
plugins_url( 'block.build.js', __FILE__ ),
plugins_url( 'build/index.js', __FILE__ ),
array( 'wp-blocks', 'wp-i18n', 'wp-element' ),
filemtime( plugin_dir_path( __FILE__ ) . 'block.build.js' )
filemtime( plugin_dir_path( __FILE__ ) . 'build/index.js' )
);

register_block_type( 'gutenberg-examples/example-01-basic-esnext', array(
Expand Down
Loading