removing unecessary console log and hangind builds src folder

This commit is contained in:
Antoine M 2023-12-07 11:05:18 +01:00
parent afceecbb6b
commit e10f38f30b
7 changed files with 381 additions and 720 deletions

View File

@ -11,8 +11,8 @@
"html": false "html": false
}, },
"textdomain": "homegrade-blocks", "textdomain": "homegrade-blocks",
"editorScript": "file:./index.js", "editorScript": "file:../build/index.js",
"editorStyle": "file:./index.css", "editorStyle": "file:../build/index.css",
"style": "file:./style-index.css", "style": "file:../build/style-index.css",
"render": "file:./render.php" "render": "file:../build/render.php"
} }

View File

@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '52fd9b0554ebc737c1b5'); <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '70c769f3024292899d1b');

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"version":3,"file":"./style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://test/./src/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-test {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"sourceRoot":""}

View File

@ -11,8 +11,8 @@
"html": false "html": false
}, },
"textdomain": "homegrade-blocks", "textdomain": "homegrade-blocks",
"editorScript": "file:./index.js", "editorScript": "file:../build/index.js",
"editorStyle": "file:./index.css", "editorStyle": "file:../build/index.css",
"style": "file:./style-index.css", "style": "file:../build/style-index.css",
"render": "file:./render.php" "render": "file:../build/render.php"
} }

View File

@ -24,6 +24,7 @@ export default function Edit() {
if (newsPosts) { if (newsPosts) {
console.log(newsPosts); console.log(newsPosts);
} }
console.log(__("Communiqués de presse", "homegrade-blocks"));
return ( return (
<section <section
{...useBlockProps({ {...useBlockProps({