Skip to content

Commit

Permalink
Add static block variation and update create block script
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed Jun 19, 2024
1 parent f5893f7 commit 24c0cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions inc/block-template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
},
},
variants: {
static: {},
dynamic: {},
interactive: {
viewScriptModule: 'file:./view.js',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"scripts": {
"a11y": "node a11y.cjs",
"build": "wp-scripts build --config webpack.config.js --webpack-src-dir=assets/blocks --stats-error-details --progress",
"create-block": "cd ./assets/blocks && npx @wordpress/create-block --namespace=wdsbt --template ../../inc/block-template --no-plugin",
"create-block": "run-s create-block:run",
"create-block:run": "cd ./assets/blocks && npx @wordpress/create-block --namespace=wdsbt --template ../../inc/block-template --no-plugin",
"format": "wp-scripts format && npm run format:php",
"format:css": "wp-scripts format-style",
"format:php": "composer run-script phpcs-fix",
Expand Down

0 comments on commit 24c0cbe

Please sign in to comment.