Skip to content

Commit

Permalink
Add payment form block.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Oct 5, 2021
1 parent aff3656 commit 0def704
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
14 changes: 14 additions & 0 deletions js/dist/blocks/payment-form/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "pronamic-pay/payment-form",
"title": "Payment Form",
"category": "pronamic-pay",
"attributes": {
"amount": {
"type": "string"
}
},
"editorScript": "pronamic-payment-form-editor",
"editorStyle": "pronamic-pay-forms",
"style": "pronamic-pay-forms",
"textdomain": "pronamic_ideal"
}
14 changes: 14 additions & 0 deletions js/src/blocks/payment-form/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "pronamic-pay/payment-form",
"title": "Payment Form",
"category": "pronamic-pay",
"attributes": {
"amount": {
"type": "string"
}
},
"editorScript": "pronamic-payment-form-editor",
"editorStyle": "pronamic-pay-forms",
"style": "pronamic-pay-forms",
"textdomain": "pronamic_ideal"
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
"eslint": "eslint . --ext .json --ext .js",
"lint": "npm-run-all --parallel eslint sass-lint",
"sass-lint": "sass-lint --verbose",
"js-build": "cp js/src/*.js js/dist",
"js-build": "npm-run-all js-build-*",
"js-build-copy": "cp js/src/*.js js/dist",
"js-build-blocks-json": "rsync -a --prune-empty-dirs --include '*/' --include 'block.json' --exclude '*' js/src/ js/dist/",
"js-minify": "npm-run-all js-minify-*",
"js-minify-admin": "terser --compress --mangle --output js/dist/admin.min.js js/src/admin.js",
"js-minify-admin-reports": "terser --compress --mangle --output js/dist/admin-reports.min.js js/src/admin-reports.js",
Expand Down

0 comments on commit 0def704

Please sign in to comment.