Skip to content

Commit

Permalink
add block structure (#10)
Browse files Browse the repository at this point in the history
* add block structure

* remove unnecessary files
  • Loading branch information
prappo authored Nov 19, 2024
1 parent e141e28 commit 6287a32
Show file tree
Hide file tree
Showing 26 changed files with 713 additions and 10 deletions.
19 changes: 19 additions & 0 deletions assets/blocks/block-1/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "wordpress-plugin-boilerplate/block-1",
"version": "0.1.0",
"title": "WPB Block 1",
"category": "widgets",
"icon": "smiley",
"description": "Example block scaffolded with Create Block tool.",
"example": {},
"supports": {
"html": false
},
"textdomain": "wordpress-plugin-boilerplate",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"viewScript": "file:./view.js"
}
11 changes: 11 additions & 0 deletions assets/blocks/block-1/index-rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/@wordpress/scripts/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/block-1/editor.scss ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
* The following styles get applied inside the editor only.
*
* Replace them with your own styles or remove the file completely.
*/
.wp-block-create-block-blocks-pricing-table {
border: 1px dotted #f00;
}
1 change: 1 addition & 0 deletions assets/blocks/block-1/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '613d48938addd2edc91f');
13 changes: 13 additions & 0 deletions assets/blocks/block-1/index.css

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

1 change: 1 addition & 0 deletions assets/blocks/block-1/index.css.map

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

Loading

0 comments on commit 6287a32

Please sign in to comment.