Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Update json files indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Secchi committed Mar 2, 2024
1 parent 09019ae commit 110f0e3
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{.jshintrc,*.json,*.yml}]
[*.{yml,yaml}]
indent_style = space
indent_size = 2

Expand Down
11 changes: 5 additions & 6 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"https://downloads.wordpress.org/plugin/jetpack.13.0.zip",
"https://downloads.wordpress.org/plugin/query-monitor.3.15.0.zip",
"https://downloads.wordpress.org/plugin/sg-security.1.4.10.zip",
"https://downloads.wordpress.org/plugin/transients-manager.2.0.5.zip",
"https://downloads.wordpress.org/plugin/transients-manager.2.0.5.zip",
"https://downloads.wordpress.org/plugin/woocommerce.8.5.2.zip"
],
"themes": [ "./themes/twentytwenty-child" ],
"themes": [ "./themes/twentytwenty-child" ],
"mappings": {
"wp-content/mu-plugins": "./mu-plugins"
},
"lifecycleScripts": {
"afterStart": "wp-env run cli wp theme activate twentytwenty-child"
}
,
"lifecycleScripts": {
"afterStart": "wp-env run cli wp theme activate twentytwenty-child"
}
}
72 changes: 37 additions & 35 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
{
"name": "giacomosecchi/write-poetry",
"type": "wordpress-plugin",
"description": "The Swiss knife plugin designed for developers and advanced users. Unlock the full potential of WordPress with this versatile tool. Empower your workflow without getting your hands dirty.",
"require": {
"yoast/wp-test-utils": "^1.1"
},
"license": "GPL-2.0-or-later",
"autoload": {
"psr-4": { "WritePoetry\\": "./includes" }
},
"authors": [
{
"name": "Giacomo Secchi",
"email": "[email protected]"
}
],
"require-dev": {
"wp-coding-standards/wpcs": "^3.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs -ps"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source"
],
"check-all": [
"@check-cs"
]
}
"name": "giacomosecchi/write-poetry",
"type": "wordpress-plugin",
"description": "The Swiss knife plugin designed for developers and advanced users. Unlock the full potential of WordPress with this versatile tool. Empower your workflow without getting your hands dirty.",
"require": {
"yoast/wp-test-utils": "^1.1"
},
"license": "GPL-2.0-or-later",
"autoload": {
"psr-4": {
"WritePoetry\\": "./includes"
}
},
"authors": [
{
"name": "Giacomo Secchi",
"email": "[email protected]"
}
],
"require-dev": {
"wp-coding-standards/wpcs": "^3.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs -ps"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source"
],
"check-all": [
"@check-cs"
]
}
}
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Example block scaffolded with Create Block tool.",
"author": "Giacomo Secchi",
"license": "GPL-2.0-or-later",
"files": [
"files": [
"assets",
"build",
"includes",
Expand Down Expand Up @@ -36,7 +36,12 @@
"build": "wp-scripts build --webpack-copy-php",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"composer": "wp-env run cli --env-cwd=wp-content/plugins/write-poetry composer",
"env:start": "wp-env start && (npm run start)",
"env:start:debug": "wp-env start --xdebug",
"env:stop": "wp-env stop",
"format": "wp-scripts format",
"format:src": "wp-scripts format ./src",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:md:docs": "wp-scripts lint-md-docs",
Expand All @@ -45,12 +50,8 @@
"plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start --webpack-copy-php",
"start:hot": "wp-scripts start --hot",
"test:unit": "wp-env run tests-cli --env-cwd=wp-content/plugins/write-poetry ./vendor/bin/phpunit",
"wp-env": "wp-env",
"env:start": "wp-env start && (npm run start)",
"env:start:debug": "wp-env start --xdebug",
"env:stop": "wp-env stop",
"composer": "wp-env run cli --env-cwd=wp-content/plugins/write-poetry composer"
"test:unit": "wp-env run tests-cli --env-cwd=wp-content/plugins/write-poetry ./vendor/bin/phpunit",
"wp-env": "wp-env"
},
"npmpackagejsonlint": {
"extends": "@wordpress/npm-package-json-lint-config",
Expand Down
62 changes: 21 additions & 41 deletions src/blocks/animation/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,68 +10,48 @@
"attributes": {
"animationName": {
"type": "string",
"enum": [
"bounce",
"flash",
"pulse",
"rubberBand"
],
"default": "bounce"
"enum": [ "bounce", "flash", "pulse", "rubberBand" ],
"default": "bounce"
},
"animationSpeed": {
"type": "string",
"enum": [
"slow",
"slower",
"fast",
"faster"
],
"enum": [ "slow", "slower", "fast", "faster" ],
"default": "fast"
},
"animationDelay": {
"type": "string",
"enum": [
"2",
"3",
"4",
"5"
],
"enum": [ "2", "3", "4", "5" ],
"default": "2"
},
"animationRepeat": {
"type": "string",
"enum": [
"repeat-1",
"repeat-2",
"repeat-3",
"infinite"
],
"enum": [ "repeat-1", "repeat-2", "repeat-3", "infinite" ],
"default": "repeat-2"
}
},
"example": {
"attributes": {
"animationName": "bounce",
"animationSpeed": "fast",
"animationDelay": "2",
"animationRepeat": "infinite"
},
"innerBlocks": [
{
"name": "core/paragraph",
"attributes": {
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."
}
}
]
},
"attributes": {
"animationName": "bounce",
"animationSpeed": "fast",
"animationDelay": "2",
"animationRepeat": "infinite"
},
"innerBlocks": [
{
"name": "core/paragraph",
"attributes": {
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."
}
}
]
},

"supports": {
"html": false
},
"textdomain": "write-poetry",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": [ "file:./style-index.css", "file:./view.css" ],
"style": [ "file:./style-index.css", "file:./view.css" ],
"viewScript": "file:./view.js"
}
12 changes: 6 additions & 6 deletions src/blocks/slider/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"version": "0.1.0",
"title": "Slider",
"category": "widgets",
"attributes": {
"numberOfPosts": {
"type": "number",
"default": 3
}
},
"attributes": {
"numberOfPosts": {
"type": "number",
"default": 3
}
},
"icon": "smiley",
"description": "Example block scaffolded with Create Block tool.",
"supports": {
Expand Down

0 comments on commit 110f0e3

Please sign in to comment.