Renames gutenberg block assets.

This commit is contained in:
Mateus Machado Luna 2020-01-14 11:54:32 -03:00
parent 91e8797ca1
commit 0314a384f7
2 changed files with 30 additions and 30 deletions

View File

@ -46,7 +46,7 @@ function tainacan_blocks_register_tainacan_terms_list(){
wp_register_script(
'terms-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_terms_list.js',
$TAINACAN_BASE_URL . '/assets/block_terms_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor', 'underscore')
);
@ -69,13 +69,13 @@ function tainacan_blocks_register_tainacan_facets_list(){
wp_enqueue_script(
'facets-list-theme',
$TAINACAN_BASE_URL . '/assets/gutenberg_facets_list_theme.js',
$TAINACAN_BASE_URL . '/assets/block_facets_list_theme.js',
array('wp-components')
);
wp_register_script(
'facets-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_facets_list.js',
$TAINACAN_BASE_URL . '/assets/block_facets_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -99,7 +99,7 @@ function tainacan_blocks_register_tainacan_items_list(){
wp_register_script(
'items-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_items_list.js',
$TAINACAN_BASE_URL . '/assets/block_items_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -122,13 +122,13 @@ function tainacan_blocks_register_tainacan_dynamic_items_list(){
wp_enqueue_script(
'dynamic-items-list-theme',
$TAINACAN_BASE_URL . '/assets/gutenberg_dynamic_items_list_theme.js',
$TAINACAN_BASE_URL . '/assets/block_dynamic_items_list_theme.js',
array('wp-components')
);
wp_register_script(
'dynamic-items-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_dynamic_items_list.js',
$TAINACAN_BASE_URL . '/assets/block_dynamic_items_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -152,13 +152,13 @@ function tainacan_blocks_register_tainacan_carousel_items_list(){
wp_enqueue_script(
'carousel-items-list-theme',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_items_list_theme.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_items_list_theme.js',
array('wp-components')
);
wp_register_script(
'carousel-items-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_items_list.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_items_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -182,13 +182,13 @@ function tainacan_blocks_register_tainacan_carousel_terms_list(){
wp_enqueue_script(
'carousel-terms-list-theme',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_terms_list_theme.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_terms_list_theme.js',
array('wp-components')
);
wp_register_script(
'carousel-terms-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_terms_list.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_terms_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -212,13 +212,13 @@ function tainacan_blocks_register_tainacan_search_bar(){
wp_enqueue_script(
'search-bar-theme-script',
$TAINACAN_BASE_URL . '/assets/gutenberg_search_bar_script.js',
$TAINACAN_BASE_URL . '/assets/block_search_bar_script.js',
array('wp-components')
);
wp_register_script(
'search-bar',
$TAINACAN_BASE_URL . '/assets/gutenberg_search_bar.js',
$TAINACAN_BASE_URL . '/assets/block_search_bar.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -241,7 +241,7 @@ function tainacan_blocks_register_tainacan_collections_list(){
wp_register_script(
'collections-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_collections_list.js',
$TAINACAN_BASE_URL . '/assets/block_collections_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
@ -264,13 +264,13 @@ function tainacan_blocks_register_tainacan_carousel_collections_list(){
wp_enqueue_script(
'carousel-collections-list-theme',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_collections_list_theme.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_collections_list_theme.js',
array('wp-components')
);
wp_register_script(
'carousel-collections-list',
$TAINACAN_BASE_URL . '/assets/gutenberg_carousel_collections_list.js',
$TAINACAN_BASE_URL . '/assets/block_carousel_collections_list.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);

View File

@ -9,29 +9,29 @@ module.exports = {
theme_search: './src/views/theme-search/js/theme-main.js',
roles: './src/views/roles/js/roles-main.js',
gutenberg_terms_list: './src/views/gutenberg-blocks/tainacan-terms/terms-list/index.js',
block_terms_list: './src/views/gutenberg-blocks/tainacan-terms/terms-list/index.js',
gutenberg_items_list: './src/views/gutenberg-blocks/tainacan-items/items-list/index.js',
block_items_list: './src/views/gutenberg-blocks/tainacan-items/items-list/index.js',
gutenberg_dynamic_items_list: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/index.js',
gutenberg_dynamic_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js',
block_dynamic_items_list: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/index.js',
block_dynamic_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js',
gutenberg_carousel_items_list: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/index.js',
gutenberg_carousel_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/carousel-items-list-theme.js',
block_carousel_items_list: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/index.js',
block_carousel_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/carousel-items-list-theme.js',
gutenberg_search_bar: './src/views/gutenberg-blocks/tainacan-items/search-bar/index.js',
gutenberg_search_bar_script: './src/views/gutenberg-blocks/tainacan-items/search-bar/search-bar-theme-script.js',
block_search_bar: './src/views/gutenberg-blocks/tainacan-items/search-bar/index.js',
block_search_bar_script: './src/views/gutenberg-blocks/tainacan-items/search-bar/search-bar-theme-script.js',
gutenberg_collections_list: './src/views/gutenberg-blocks/tainacan-collections/collections-list/index.js',
block_collections_list: './src/views/gutenberg-blocks/tainacan-collections/collections-list/index.js',
gutenberg_carousel_collections_list: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/index.js',
gutenberg_carousel_collections_list_theme: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/carousel-collections-list-theme.js',
block_carousel_collections_list: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/index.js',
block_carousel_collections_list_theme: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/carousel-collections-list-theme.js',
gutenberg_facets_list: './src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js',
gutenberg_facets_list_theme: './src/views/gutenberg-blocks/tainacan-facets/facets-list/facets-list-theme.js',
block_facets_list: './src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js',
block_facets_list_theme: './src/views/gutenberg-blocks/tainacan-facets/facets-list/facets-list-theme.js',
gutenberg_carousel_terms_list: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/index.js',
gutenberg_carousel_terms_list_theme: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/carousel-terms-list-theme.js'
block_carousel_terms_list: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/index.js',
block_carousel_terms_list_theme: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/carousel-terms-list-theme.js'
},
output: {