From 04ff60906a7ba3fd258db79540b2a86afbdadc06 Mon Sep 17 00:00:00 2001 From: Fernando Fernandes Date: Sat, 23 Mar 2024 11:45:53 -0500 Subject: [PATCH] Minor improvements to the repo --- .editorconfig | 18 ++++++++++++++++++ .github/workflows/make-plugin-release.yml | 4 ++-- readme.md | 8 ++++++-- special-projects-blocks-monorepo.php | 8 ++++---- 4 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b5df0fc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +# WordPress Coding Standards +# https://make.wordpress.org/core/handbook/coding-standards/ + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/make-plugin-release.yml b/.github/workflows/make-plugin-release.yml index d2b0d6d..1f0e65d 100644 --- a/.github/workflows/make-plugin-release.yml +++ b/.github/workflows/make-plugin-release.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest if: ${{ needs.get-changed-folders.outputs.matrix != '[]' }} strategy: - matrix: + matrix: files: ${{ fromJSON( needs.get-changed-folders.outputs.matrix ) }} max-parallel: 4 fail-fast: false @@ -59,4 +59,4 @@ jobs: body_path: ${{ matrix.files }}/CHANGELOG.md permissions: - contents: write \ No newline at end of file + contents: write diff --git a/readme.md b/readme.md index 882fef6..acf1ca0 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,15 @@ # WP Special Projects - All Blocks -All namespacing should use `wpsp` as the value. +All namespacing should use `wpsp` as the value. Genericize your blocks, do not include site names or data as part of the block markup or content. +Your plugin *must* contain a `CHANGELOG.md` file. + +Your plugin must have an entrypoint with the same name as the folder, i.e. `hello-world/hello-world.php`. + Creating a new block. ```console npx @wordpress/create-block -``` \ No newline at end of file +``` diff --git a/special-projects-blocks-monorepo.php b/special-projects-blocks-monorepo.php index 616a67f..ff06149 100644 --- a/special-projects-blocks-monorepo.php +++ b/special-projects-blocks-monorepo.php @@ -1,4 +1,4 @@ -