From 5fc0b4963ad77c990cb3866f09fb007377507312 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 11 Mar 2022 18:02:51 -0500 Subject: [PATCH] chore: flarum-cli audit infra --fix --- .github/workflows/flarum-akismet-backend.yml | 15 +++++++++++++ .github/workflows/flarum-akismet-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-approval-backend.yml | 15 +++++++++++++ .../workflows/flarum-approval-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-core-backend.yml | 15 +++++++++++++ .github/workflows/flarum-core-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-embed-backend.yml | 15 +++++++++++++ .github/workflows/flarum-embed-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-emoji-backend.yml | 15 +++++++++++++ .github/workflows/flarum-emoji-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-flags-backend.yml | 15 +++++++++++++ .github/workflows/flarum-flags-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-likes-backend.yml | 15 +++++++++++++ .github/workflows/flarum-likes-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-lock-backend.yml | 15 +++++++++++++ .github/workflows/flarum-lock-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-markdown-backend.yml | 15 +++++++++++++ .../workflows/flarum-markdown-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-mentions-backend.yml | 15 +++++++++++++ .../workflows/flarum-mentions-frontend.yml | 22 +++++++++++++++++++ .../workflows/flarum-nicknames-backend.yml | 15 +++++++++++++ .../workflows/flarum-nicknames-frontend.yml | 22 +++++++++++++++++++ .../flarum-package-manager-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-pusher-backend.yml | 15 +++++++++++++ .github/workflows/flarum-pusher-frontend.yml | 22 +++++++++++++++++++ .../workflows/flarum-statistics-backend.yml | 15 +++++++++++++ .../workflows/flarum-statistics-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-sticky-backend.yml | 15 +++++++++++++ .github/workflows/flarum-sticky-frontend.yml | 22 +++++++++++++++++++ .../flarum-subscriptions-backend.yml | 15 +++++++++++++ .../flarum-subscriptions-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-suspend-backend.yml | 15 +++++++++++++ .github/workflows/flarum-suspend-frontend.yml | 22 +++++++++++++++++++ .github/workflows/flarum-tags-backend.yml | 15 +++++++++++++ .github/workflows/flarum-tags-frontend.yml | 22 +++++++++++++++++++ .styleci.yml | 14 ++++++++++++ extensions/akismet/.gitattributes | 1 + extensions/akismet/composer.json | 6 +++-- extensions/akismet/js/package.json | 5 +++-- .../akismet/tests/phpunit.integration.xml | 1 + extensions/approval/.gitattributes | 1 + extensions/approval/composer.json | 6 +++-- extensions/approval/js/package.json | 2 +- extensions/bbcode/.gitattributes | 1 + extensions/bbcode/composer.json | 6 +++-- extensions/embed/.gitattributes | 1 + extensions/embed/composer.json | 6 +++-- extensions/embed/js/package.json | 2 +- extensions/emoji/.gitattributes | 1 + extensions/emoji/composer.json | 6 +++-- extensions/emoji/js/package.json | 2 +- extensions/flags/.gitattributes | 1 + extensions/flags/composer.json | 6 +++-- extensions/flags/js/package.json | 2 +- .../flags/tests/phpunit.integration.xml | 1 + extensions/lang-english/.gitattributes | 1 + extensions/lang-english/composer.json | 6 +++-- extensions/likes/.gitattributes | 1 + extensions/likes/composer.json | 6 +++-- extensions/likes/js/package.json | 2 +- extensions/lock/.gitattributes | 1 + extensions/lock/composer.json | 6 +++-- extensions/lock/js/package.json | 2 +- extensions/markdown/.gitattributes | 1 + extensions/markdown/composer.json | 6 +++-- extensions/markdown/js/package.json | 2 +- extensions/markdown/less/forum.less | 0 extensions/mentions/.gitattributes | 1 + extensions/mentions/composer.json | 6 +++-- extensions/mentions/js/package.json | 2 +- .../mentions/tests/phpunit.integration.xml | 1 + extensions/nicknames/.gitattributes | 1 + extensions/nicknames/composer.json | 6 +++-- extensions/nicknames/js/package.json | 2 +- .../nicknames/tests/phpunit.integration.xml | 1 + extensions/package-manager/composer.json | 6 +++-- extensions/package-manager/js/package.json | 5 +++-- extensions/pusher/.gitattributes | 1 + extensions/pusher/composer.json | 6 +++-- extensions/pusher/js/package.json | 7 +++--- extensions/statistics/composer.json | 6 +++-- extensions/statistics/js/package.json | 5 +++-- extensions/sticky/.gitattributes | 1 + extensions/sticky/composer.json | 6 +++-- extensions/sticky/js/package.json | 2 +- extensions/subscriptions/.gitattributes | 1 + extensions/subscriptions/composer.json | 6 +++-- extensions/subscriptions/js/package.json | 2 +- extensions/suspend/.gitattributes | 1 + extensions/suspend/composer.json | 6 +++-- extensions/suspend/js/package.json | 2 +- extensions/tags/.gitattributes | 1 + extensions/tags/composer.json | 6 +++-- extensions/tags/js/package.json | 2 +- extensions/tags/tests/phpunit.integration.xml | 1 + framework/core/composer.json | 6 +++-- 96 files changed, 793 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/flarum-akismet-backend.yml create mode 100755 .github/workflows/flarum-akismet-frontend.yml create mode 100644 .github/workflows/flarum-approval-backend.yml create mode 100755 .github/workflows/flarum-approval-frontend.yml create mode 100644 .github/workflows/flarum-core-backend.yml create mode 100755 .github/workflows/flarum-core-frontend.yml create mode 100644 .github/workflows/flarum-embed-backend.yml create mode 100755 .github/workflows/flarum-embed-frontend.yml create mode 100644 .github/workflows/flarum-emoji-backend.yml create mode 100755 .github/workflows/flarum-emoji-frontend.yml create mode 100644 .github/workflows/flarum-flags-backend.yml create mode 100755 .github/workflows/flarum-flags-frontend.yml create mode 100644 .github/workflows/flarum-likes-backend.yml create mode 100755 .github/workflows/flarum-likes-frontend.yml create mode 100644 .github/workflows/flarum-lock-backend.yml create mode 100755 .github/workflows/flarum-lock-frontend.yml create mode 100644 .github/workflows/flarum-markdown-backend.yml create mode 100755 .github/workflows/flarum-markdown-frontend.yml create mode 100644 .github/workflows/flarum-mentions-backend.yml create mode 100755 .github/workflows/flarum-mentions-frontend.yml create mode 100644 .github/workflows/flarum-nicknames-backend.yml create mode 100755 .github/workflows/flarum-nicknames-frontend.yml create mode 100755 .github/workflows/flarum-package-manager-frontend.yml create mode 100644 .github/workflows/flarum-pusher-backend.yml create mode 100755 .github/workflows/flarum-pusher-frontend.yml create mode 100644 .github/workflows/flarum-statistics-backend.yml create mode 100755 .github/workflows/flarum-statistics-frontend.yml create mode 100644 .github/workflows/flarum-sticky-backend.yml create mode 100755 .github/workflows/flarum-sticky-frontend.yml create mode 100644 .github/workflows/flarum-subscriptions-backend.yml create mode 100755 .github/workflows/flarum-subscriptions-frontend.yml create mode 100644 .github/workflows/flarum-suspend-backend.yml create mode 100755 .github/workflows/flarum-suspend-frontend.yml create mode 100644 .github/workflows/flarum-tags-backend.yml create mode 100755 .github/workflows/flarum-tags-frontend.yml create mode 100644 .styleci.yml create mode 100644 extensions/markdown/less/forum.less diff --git a/.github/workflows/flarum-akismet-backend.yml b/.github/workflows/flarum-akismet-backend.yml new file mode 100644 index 000000000..1b3d8b182 --- /dev/null +++ b/.github/workflows/flarum-akismet-backend.yml @@ -0,0 +1,15 @@ +name: Akismet PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/akismet diff --git a/.github/workflows/flarum-akismet-frontend.yml b/.github/workflows/flarum-akismet-frontend.yml new file mode 100755 index 000000000..2c377c52e --- /dev/null +++ b/.github/workflows/flarum-akismet-frontend.yml @@ -0,0 +1,22 @@ +name: Akismet JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: true + + frontend_directory: ./extensions/akismet/js + backend_directory: ./extensions/akismet + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-approval-backend.yml b/.github/workflows/flarum-approval-backend.yml new file mode 100644 index 000000000..d820094d8 --- /dev/null +++ b/.github/workflows/flarum-approval-backend.yml @@ -0,0 +1,15 @@ +name: Approval PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/approval diff --git a/.github/workflows/flarum-approval-frontend.yml b/.github/workflows/flarum-approval-frontend.yml new file mode 100755 index 000000000..3853d14db --- /dev/null +++ b/.github/workflows/flarum-approval-frontend.yml @@ -0,0 +1,22 @@ +name: Approval JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/approval/js + backend_directory: ./extensions/approval + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-core-backend.yml b/.github/workflows/flarum-core-backend.yml new file mode 100644 index 000000000..e3aed728f --- /dev/null +++ b/.github/workflows/flarum-core-backend.yml @@ -0,0 +1,15 @@ +name: Core PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./framework/core diff --git a/.github/workflows/flarum-core-frontend.yml b/.github/workflows/flarum-core-frontend.yml new file mode 100755 index 000000000..dab8f6421 --- /dev/null +++ b/.github/workflows/flarum-core-frontend.yml @@ -0,0 +1,22 @@ +name: Core JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: true + enable_prettier: true + enable_typescript: true + + frontend_directory: ./framework/core/js + backend_directory: ./framework/core + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-embed-backend.yml b/.github/workflows/flarum-embed-backend.yml new file mode 100644 index 000000000..605b270f1 --- /dev/null +++ b/.github/workflows/flarum-embed-backend.yml @@ -0,0 +1,15 @@ +name: Embed PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/embed diff --git a/.github/workflows/flarum-embed-frontend.yml b/.github/workflows/flarum-embed-frontend.yml new file mode 100755 index 000000000..9b201edf2 --- /dev/null +++ b/.github/workflows/flarum-embed-frontend.yml @@ -0,0 +1,22 @@ +name: Embed JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/embed/js + backend_directory: ./extensions/embed + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-emoji-backend.yml b/.github/workflows/flarum-emoji-backend.yml new file mode 100644 index 000000000..999a35a83 --- /dev/null +++ b/.github/workflows/flarum-emoji-backend.yml @@ -0,0 +1,15 @@ +name: Emoji PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/emoji diff --git a/.github/workflows/flarum-emoji-frontend.yml b/.github/workflows/flarum-emoji-frontend.yml new file mode 100755 index 000000000..b8c1e4e67 --- /dev/null +++ b/.github/workflows/flarum-emoji-frontend.yml @@ -0,0 +1,22 @@ +name: Emoji JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/emoji/js + backend_directory: ./extensions/emoji + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-flags-backend.yml b/.github/workflows/flarum-flags-backend.yml new file mode 100644 index 000000000..06e2ac1d1 --- /dev/null +++ b/.github/workflows/flarum-flags-backend.yml @@ -0,0 +1,15 @@ +name: Flags PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/flags diff --git a/.github/workflows/flarum-flags-frontend.yml b/.github/workflows/flarum-flags-frontend.yml new file mode 100755 index 000000000..195b078cb --- /dev/null +++ b/.github/workflows/flarum-flags-frontend.yml @@ -0,0 +1,22 @@ +name: Flags JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/flags/js + backend_directory: ./extensions/flags + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-likes-backend.yml b/.github/workflows/flarum-likes-backend.yml new file mode 100644 index 000000000..f3a7cd702 --- /dev/null +++ b/.github/workflows/flarum-likes-backend.yml @@ -0,0 +1,15 @@ +name: Likes PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/likes diff --git a/.github/workflows/flarum-likes-frontend.yml b/.github/workflows/flarum-likes-frontend.yml new file mode 100755 index 000000000..2ad80c334 --- /dev/null +++ b/.github/workflows/flarum-likes-frontend.yml @@ -0,0 +1,22 @@ +name: Likes JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/likes/js + backend_directory: ./extensions/likes + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-lock-backend.yml b/.github/workflows/flarum-lock-backend.yml new file mode 100644 index 000000000..768fe289d --- /dev/null +++ b/.github/workflows/flarum-lock-backend.yml @@ -0,0 +1,15 @@ +name: Lock PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/lock diff --git a/.github/workflows/flarum-lock-frontend.yml b/.github/workflows/flarum-lock-frontend.yml new file mode 100755 index 000000000..4d44f38fb --- /dev/null +++ b/.github/workflows/flarum-lock-frontend.yml @@ -0,0 +1,22 @@ +name: Lock JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/lock/js + backend_directory: ./extensions/lock + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-markdown-backend.yml b/.github/workflows/flarum-markdown-backend.yml new file mode 100644 index 000000000..098131aea --- /dev/null +++ b/.github/workflows/flarum-markdown-backend.yml @@ -0,0 +1,15 @@ +name: Markdown PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/markdown diff --git a/.github/workflows/flarum-markdown-frontend.yml b/.github/workflows/flarum-markdown-frontend.yml new file mode 100755 index 000000000..5d3580c30 --- /dev/null +++ b/.github/workflows/flarum-markdown-frontend.yml @@ -0,0 +1,22 @@ +name: Markdown JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/markdown/js + backend_directory: ./extensions/markdown + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-mentions-backend.yml b/.github/workflows/flarum-mentions-backend.yml new file mode 100644 index 000000000..f2949790b --- /dev/null +++ b/.github/workflows/flarum-mentions-backend.yml @@ -0,0 +1,15 @@ +name: Mentions PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/mentions diff --git a/.github/workflows/flarum-mentions-frontend.yml b/.github/workflows/flarum-mentions-frontend.yml new file mode 100755 index 000000000..137125ab5 --- /dev/null +++ b/.github/workflows/flarum-mentions-frontend.yml @@ -0,0 +1,22 @@ +name: Mentions JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/mentions/js + backend_directory: ./extensions/mentions + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-nicknames-backend.yml b/.github/workflows/flarum-nicknames-backend.yml new file mode 100644 index 000000000..859b45d41 --- /dev/null +++ b/.github/workflows/flarum-nicknames-backend.yml @@ -0,0 +1,15 @@ +name: Nicknames PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/nicknames diff --git a/.github/workflows/flarum-nicknames-frontend.yml b/.github/workflows/flarum-nicknames-frontend.yml new file mode 100755 index 000000000..fc0f15306 --- /dev/null +++ b/.github/workflows/flarum-nicknames-frontend.yml @@ -0,0 +1,22 @@ +name: Nicknames JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/nicknames/js + backend_directory: ./extensions/nicknames + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-package-manager-frontend.yml b/.github/workflows/flarum-package-manager-frontend.yml new file mode 100755 index 000000000..74c5da28d --- /dev/null +++ b/.github/workflows/flarum-package-manager-frontend.yml @@ -0,0 +1,22 @@ +name: Package Manager JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: true + + frontend_directory: ./extensions/package-manager/js + backend_directory: ./extensions/package-manager + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-pusher-backend.yml b/.github/workflows/flarum-pusher-backend.yml new file mode 100644 index 000000000..bba87e389 --- /dev/null +++ b/.github/workflows/flarum-pusher-backend.yml @@ -0,0 +1,15 @@ +name: Pusher PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/pusher diff --git a/.github/workflows/flarum-pusher-frontend.yml b/.github/workflows/flarum-pusher-frontend.yml new file mode 100755 index 000000000..953caf053 --- /dev/null +++ b/.github/workflows/flarum-pusher-frontend.yml @@ -0,0 +1,22 @@ +name: Pusher JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: true + + frontend_directory: ./extensions/pusher/js + backend_directory: ./extensions/pusher + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-statistics-backend.yml b/.github/workflows/flarum-statistics-backend.yml new file mode 100644 index 000000000..9b914691d --- /dev/null +++ b/.github/workflows/flarum-statistics-backend.yml @@ -0,0 +1,15 @@ +name: Statistics PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/statistics diff --git a/.github/workflows/flarum-statistics-frontend.yml b/.github/workflows/flarum-statistics-frontend.yml new file mode 100755 index 000000000..2f8f3c6fd --- /dev/null +++ b/.github/workflows/flarum-statistics-frontend.yml @@ -0,0 +1,22 @@ +name: Statistics JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: true + + frontend_directory: ./extensions/statistics/js + backend_directory: ./extensions/statistics + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-sticky-backend.yml b/.github/workflows/flarum-sticky-backend.yml new file mode 100644 index 000000000..8c212f415 --- /dev/null +++ b/.github/workflows/flarum-sticky-backend.yml @@ -0,0 +1,15 @@ +name: Sticky PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/sticky diff --git a/.github/workflows/flarum-sticky-frontend.yml b/.github/workflows/flarum-sticky-frontend.yml new file mode 100755 index 000000000..e53db4778 --- /dev/null +++ b/.github/workflows/flarum-sticky-frontend.yml @@ -0,0 +1,22 @@ +name: Sticky JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/sticky/js + backend_directory: ./extensions/sticky + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-subscriptions-backend.yml b/.github/workflows/flarum-subscriptions-backend.yml new file mode 100644 index 000000000..1722c0db1 --- /dev/null +++ b/.github/workflows/flarum-subscriptions-backend.yml @@ -0,0 +1,15 @@ +name: Subscriptions PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/subscriptions diff --git a/.github/workflows/flarum-subscriptions-frontend.yml b/.github/workflows/flarum-subscriptions-frontend.yml new file mode 100755 index 000000000..122f6c58f --- /dev/null +++ b/.github/workflows/flarum-subscriptions-frontend.yml @@ -0,0 +1,22 @@ +name: Subscriptions JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/subscriptions/js + backend_directory: ./extensions/subscriptions + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-suspend-backend.yml b/.github/workflows/flarum-suspend-backend.yml new file mode 100644 index 000000000..8af2f7968 --- /dev/null +++ b/.github/workflows/flarum-suspend-backend.yml @@ -0,0 +1,15 @@ +name: Suspend PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: false + + backend_directory: ./extensions/suspend diff --git a/.github/workflows/flarum-suspend-frontend.yml b/.github/workflows/flarum-suspend-frontend.yml new file mode 100755 index 000000000..56b3c141b --- /dev/null +++ b/.github/workflows/flarum-suspend-frontend.yml @@ -0,0 +1,22 @@ +name: Suspend JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./extensions/suspend/js + backend_directory: ./extensions/suspend + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/flarum-tags-backend.yml b/.github/workflows/flarum-tags-backend.yml new file mode 100644 index 000000000..5abbe9051 --- /dev/null +++ b/.github/workflows/flarum-tags-backend.yml @@ -0,0 +1,15 @@ +name: Tags PHP + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + with: + enable_backend_testing: true + + backend_directory: ./extensions/tags diff --git a/.github/workflows/flarum-tags-frontend.yml b/.github/workflows/flarum-tags-frontend.yml new file mode 100755 index 000000000..e7aa25345 --- /dev/null +++ b/.github/workflows/flarum-tags-frontend.yml @@ -0,0 +1,22 @@ +name: Tags JS + +on: [workflow_dispatch, push, pull_request] + +# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. +# This will break your current script. +# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. + +jobs: + run: + uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + with: + enable_bundlewatch: false + enable_prettier: false + enable_typescript: false + + frontend_directory: ./extensions/tags/js + backend_directory: ./extensions/tags + js_package_manager: yarn + main_git_branch: main + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 000000000..8806a5402 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1,14 @@ +preset: recommended + +enabled: + - logical_not_operators_with_successor_space + +disabled: + - align_double_arrow + - blank_line_after_opening_tag + - multiline_array_trailing_comma + - new_with_braces + - phpdoc_align + - phpdoc_order + - phpdoc_separation + - phpdoc_types diff --git a/extensions/akismet/.gitattributes b/extensions/akismet/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/akismet/.gitattributes +++ b/extensions/akismet/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/akismet/composer.json b/extensions/akismet/composer.json index 49384170b..e088415ce 100644 --- a/extensions/akismet/composer.json +++ b/extensions/akismet/composer.json @@ -78,10 +78,12 @@ "require-dev": { "flarum/testing": "^1.0.0" }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/akismet/js/package.json b/extensions/akismet/js/package.json index 9ee8a4c5b..e9818d585 100644 --- a/extensions/akismet/js/package.json +++ b/extensions/akismet/js/package.json @@ -5,13 +5,14 @@ "scripts": { "dev": "webpack --mode development --watch", "build": "webpack --mode production", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "format": "prettier --write src", "format-check": "prettier --check src", "check-typings": "tsc --noEmit --emitDeclarationOnly false", "check-typings-coverage": "typescript-coverage-report", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", - "build-typings": "npm run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types" + "build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings", + "post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'" }, "devDependencies": { "@flarum/prettier-config": "^1.0.0", diff --git a/extensions/akismet/tests/phpunit.integration.xml b/extensions/akismet/tests/phpunit.integration.xml index 23afc237d..90fbbff37 100644 --- a/extensions/akismet/tests/phpunit.integration.xml +++ b/extensions/akismet/tests/phpunit.integration.xml @@ -19,6 +19,7 @@ ./integration + ./integration/tmp diff --git a/extensions/approval/.gitattributes b/extensions/approval/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/approval/.gitattributes +++ b/extensions/approval/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/approval/composer.json b/extensions/approval/composer.json index 269f0310c..1ab98ce5a 100644 --- a/extensions/approval/composer.json +++ b/extensions/approval/composer.json @@ -58,10 +58,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/approval/js/package.json b/extensions/approval/js/package.json index 5193dc45b..8abf70830 100644 --- a/extensions/approval/js/package.json +++ b/extensions/approval/js/package.json @@ -14,6 +14,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/bbcode/.gitattributes b/extensions/bbcode/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/bbcode/.gitattributes +++ b/extensions/bbcode/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/bbcode/composer.json b/extensions/bbcode/composer.json index 1b745705e..2beda6bc5 100644 --- a/extensions/bbcode/composer.json +++ b/extensions/bbcode/composer.json @@ -52,10 +52,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/embed/.gitattributes b/extensions/embed/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/embed/.gitattributes +++ b/extensions/embed/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/embed/composer.json b/extensions/embed/composer.json index 3bb0577e4..203a8de87 100644 --- a/extensions/embed/composer.json +++ b/extensions/embed/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/embed/js/package.json b/extensions/embed/js/package.json index b81357f7f..07148ad2f 100644 --- a/extensions/embed/js/package.json +++ b/extensions/embed/js/package.json @@ -17,6 +17,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/emoji/.gitattributes b/extensions/emoji/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/emoji/.gitattributes +++ b/extensions/emoji/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/emoji/composer.json b/extensions/emoji/composer.json index d5a0997a0..31e0a0863 100644 --- a/extensions/emoji/composer.json +++ b/extensions/emoji/composer.json @@ -51,10 +51,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/emoji/js/package.json b/extensions/emoji/js/package.json index 9c74a0315..2227f6474 100644 --- a/extensions/emoji/js/package.json +++ b/extensions/emoji/js/package.json @@ -21,7 +21,7 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", "build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc", "check-typings": "tsc --noEmit --emitDeclarationOnly false", diff --git a/extensions/flags/.gitattributes b/extensions/flags/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/flags/.gitattributes +++ b/extensions/flags/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/flags/composer.json b/extensions/flags/composer.json index 16a7be821..e866a8fb3 100644 --- a/extensions/flags/composer.json +++ b/extensions/flags/composer.json @@ -77,10 +77,12 @@ "flarum/tags": "*@dev", "flarum/testing": "^1.0.0" }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/flags/js/package.json b/extensions/flags/js/package.json index 5165bd929..3258c1407 100644 --- a/extensions/flags/js/package.json +++ b/extensions/flags/js/package.json @@ -24,7 +24,7 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", "build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc", "check-typings": "tsc --noEmit --emitDeclarationOnly false", diff --git a/extensions/flags/tests/phpunit.integration.xml b/extensions/flags/tests/phpunit.integration.xml index 23afc237d..90fbbff37 100644 --- a/extensions/flags/tests/phpunit.integration.xml +++ b/extensions/flags/tests/phpunit.integration.xml @@ -19,6 +19,7 @@ ./integration + ./integration/tmp diff --git a/extensions/lang-english/.gitattributes b/extensions/lang-english/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/lang-english/.gitattributes +++ b/extensions/lang-english/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/lang-english/composer.json b/extensions/lang-english/composer.json index fe9f450ca..dfa8378ef 100644 --- a/extensions/lang-english/composer.json +++ b/extensions/lang-english/composer.json @@ -50,10 +50,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/likes/.gitattributes b/extensions/likes/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/likes/.gitattributes +++ b/extensions/likes/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/likes/composer.json b/extensions/likes/composer.json index c3badee77..5fc229c05 100644 --- a/extensions/likes/composer.json +++ b/extensions/likes/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/likes/js/package.json b/extensions/likes/js/package.json index dd05b4a5e..1a6a2d02f 100644 --- a/extensions/likes/js/package.json +++ b/extensions/likes/js/package.json @@ -14,6 +14,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/lock/.gitattributes b/extensions/lock/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/lock/.gitattributes +++ b/extensions/lock/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/lock/composer.json b/extensions/lock/composer.json index 601999b0f..c6afa6bac 100644 --- a/extensions/lock/composer.json +++ b/extensions/lock/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/lock/js/package.json b/extensions/lock/js/package.json index b71e5e2f3..372b4f509 100644 --- a/extensions/lock/js/package.json +++ b/extensions/lock/js/package.json @@ -17,7 +17,7 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", "build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc", "check-typings": "tsc --noEmit --emitDeclarationOnly false", diff --git a/extensions/markdown/.gitattributes b/extensions/markdown/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/markdown/.gitattributes +++ b/extensions/markdown/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/markdown/composer.json b/extensions/markdown/composer.json index 48ea204f4..572a0bedf 100644 --- a/extensions/markdown/composer.json +++ b/extensions/markdown/composer.json @@ -55,10 +55,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/markdown/js/package.json b/extensions/markdown/js/package.json index 5d2f9383f..98f91d855 100644 --- a/extensions/markdown/js/package.json +++ b/extensions/markdown/js/package.json @@ -12,7 +12,7 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" }, "packageManager": "yarn@3.1.1", "devDependencies": { diff --git a/extensions/markdown/less/forum.less b/extensions/markdown/less/forum.less new file mode 100644 index 000000000..e69de29bb diff --git a/extensions/mentions/.gitattributes b/extensions/mentions/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/mentions/.gitattributes +++ b/extensions/mentions/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/mentions/composer.json b/extensions/mentions/composer.json index 8cc28b856..48ede164c 100644 --- a/extensions/mentions/composer.json +++ b/extensions/mentions/composer.json @@ -76,10 +76,12 @@ "flarum/core": "*@dev", "flarum/testing": "^1.0.0" }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/mentions/js/package.json b/extensions/mentions/js/package.json index a728ec97b..77fd605c2 100644 --- a/extensions/mentions/js/package.json +++ b/extensions/mentions/js/package.json @@ -14,6 +14,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/mentions/tests/phpunit.integration.xml b/extensions/mentions/tests/phpunit.integration.xml index 23afc237d..90fbbff37 100644 --- a/extensions/mentions/tests/phpunit.integration.xml +++ b/extensions/mentions/tests/phpunit.integration.xml @@ -19,6 +19,7 @@ ./integration + ./integration/tmp diff --git a/extensions/nicknames/.gitattributes b/extensions/nicknames/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/nicknames/.gitattributes +++ b/extensions/nicknames/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/nicknames/composer.json b/extensions/nicknames/composer.json index f20fb909e..c1b3625cf 100644 --- a/extensions/nicknames/composer.json +++ b/extensions/nicknames/composer.json @@ -76,10 +76,12 @@ "test:integration": "Runs all integration tests.", "test:setup": "Sets up a database for use with integration tests. Execute this only once." }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/nicknames/js/package.json b/extensions/nicknames/js/package.json index 2071dd9e5..5bb920a28 100644 --- a/extensions/nicknames/js/package.json +++ b/extensions/nicknames/js/package.json @@ -15,6 +15,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/nicknames/tests/phpunit.integration.xml b/extensions/nicknames/tests/phpunit.integration.xml index 23afc237d..90fbbff37 100644 --- a/extensions/nicknames/tests/phpunit.integration.xml +++ b/extensions/nicknames/tests/phpunit.integration.xml @@ -19,6 +19,7 @@ ./integration + ./integration/tmp diff --git a/extensions/package-manager/composer.json b/extensions/package-manager/composer.json index bdbefc6bd..d8e7493d0 100755 --- a/extensions/package-manager/composer.json +++ b/extensions/package-manager/composer.json @@ -97,8 +97,10 @@ }, "minimum-stability": "dev", "prefer-stable": true, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }] + } + ] } diff --git a/extensions/package-manager/js/package.json b/extensions/package-manager/js/package.json index 01ad726df..474734050 100755 --- a/extensions/package-manager/js/package.json +++ b/extensions/package-manager/js/package.json @@ -21,8 +21,9 @@ "ci": "yarn install --immutable --immutable-cache", "analyze": "cross-env ANALYZER=true yarn run build", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", - "build-typings": "yarn run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types", + "build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings", "check-typings": "tsc --noEmit --emitDeclarationOnly false", - "check-typings-coverage": "typescript-coverage-report" + "check-typings-coverage": "typescript-coverage-report", + "post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'" } } diff --git a/extensions/pusher/.gitattributes b/extensions/pusher/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/pusher/.gitattributes +++ b/extensions/pusher/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/pusher/composer.json b/extensions/pusher/composer.json index d56194f79..dc274ffe9 100644 --- a/extensions/pusher/composer.json +++ b/extensions/pusher/composer.json @@ -61,10 +61,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/pusher/js/package.json b/extensions/pusher/js/package.json index d22f39bc9..5408366f6 100644 --- a/extensions/pusher/js/package.json +++ b/extensions/pusher/js/package.json @@ -5,13 +5,14 @@ "scripts": { "dev": "webpack --mode development --watch", "build": "webpack --mode production", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "format": "prettier --write src", "format-check": "prettier --check src", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", - "build-typings": "npm run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types", + "build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings", "check-typings": "tsc --noEmit --emitDeclarationOnly false", - "check-typings-coverage": "typescript-coverage-report" + "check-typings-coverage": "typescript-coverage-report", + "post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'" }, "devDependencies": { "@flarum/prettier-config": "^1.0.0", diff --git a/extensions/statistics/composer.json b/extensions/statistics/composer.json index 3b7506cf5..eaca2f58d 100644 --- a/extensions/statistics/composer.json +++ b/extensions/statistics/composer.json @@ -78,10 +78,12 @@ "require-dev": { "flarum/testing": "^1.0.0" }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/statistics/js/package.json b/extensions/statistics/js/package.json index f0868bbb0..275497eea 100644 --- a/extensions/statistics/js/package.json +++ b/extensions/statistics/js/package.json @@ -23,9 +23,10 @@ "format-check": "prettier --check src", "analyze": "cross-env ANALYZER=true yarn run build", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", - "build-typings": "yarn run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types", + "build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings", "check-typings": "tsc --noEmit --emitDeclarationOnly false", "check-typings-coverage": "typescript-coverage-report", - "ci": "yarn install --immutable --immutable-cache" + "ci": "yarn install --immutable --immutable-cache", + "post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'" } } diff --git a/extensions/sticky/.gitattributes b/extensions/sticky/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/sticky/.gitattributes +++ b/extensions/sticky/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/sticky/composer.json b/extensions/sticky/composer.json index 95571c41e..7f5790347 100644 --- a/extensions/sticky/composer.json +++ b/extensions/sticky/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/sticky/js/package.json b/extensions/sticky/js/package.json index 28a2be90e..7b18743a7 100644 --- a/extensions/sticky/js/package.json +++ b/extensions/sticky/js/package.json @@ -14,6 +14,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/subscriptions/.gitattributes b/extensions/subscriptions/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/subscriptions/.gitattributes +++ b/extensions/subscriptions/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/subscriptions/composer.json b/extensions/subscriptions/composer.json index aa9e04118..6cb31bbb2 100644 --- a/extensions/subscriptions/composer.json +++ b/extensions/subscriptions/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/subscriptions/js/package.json b/extensions/subscriptions/js/package.json index 18f39d19a..384bdaded 100644 --- a/extensions/subscriptions/js/package.json +++ b/extensions/subscriptions/js/package.json @@ -14,6 +14,6 @@ "build": "webpack --mode production", "format": "prettier --write src", "format-check": "prettier --check src", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" } } diff --git a/extensions/suspend/.gitattributes b/extensions/suspend/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/suspend/.gitattributes +++ b/extensions/suspend/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/suspend/composer.json b/extensions/suspend/composer.json index 2724aebf9..b5268a256 100644 --- a/extensions/suspend/composer.json +++ b/extensions/suspend/composer.json @@ -57,10 +57,12 @@ } } }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/suspend/js/package.json b/extensions/suspend/js/package.json index 374dce85e..9e36f9eaf 100644 --- a/extensions/suspend/js/package.json +++ b/extensions/suspend/js/package.json @@ -6,7 +6,7 @@ "dev": "webpack --mode development --watch", "build": "webpack --mode production", "format": "prettier --write src", - "analyze": "cross-env ANALYZER=true yarn build", + "analyze": "cross-env ANALYZER=true yarn run build", "format-check": "prettier --check src" }, "devDependencies": { diff --git a/extensions/tags/.gitattributes b/extensions/tags/.gitattributes index ca0f40972..b9a08e27d 100644 --- a/extensions/tags/.gitattributes +++ b/extensions/tags/.gitattributes @@ -14,5 +14,6 @@ js/dist/* -diff js/dist/* linguist-generated js/dist-typings/* linguist-generated js/yarn.lock -diff +js/package-lock.json -diff * text=auto eol=lf diff --git a/extensions/tags/composer.json b/extensions/tags/composer.json index ea8490a81..52abefcec 100644 --- a/extensions/tags/composer.json +++ b/extensions/tags/composer.json @@ -81,10 +81,12 @@ "flarum/core": "*@dev", "flarum/testing": "^1.0.0" }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true } diff --git a/extensions/tags/js/package.json b/extensions/tags/js/package.json index 91f96a670..8d71ff660 100644 --- a/extensions/tags/js/package.json +++ b/extensions/tags/js/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "webpack --mode development --watch", "build": "webpack --mode production", - "analyze": "cross-env ANALYZER=true yarn build" + "analyze": "cross-env ANALYZER=true yarn run build" }, "devDependencies": { "flarum-webpack-config": "^2.0.0", diff --git a/extensions/tags/tests/phpunit.integration.xml b/extensions/tags/tests/phpunit.integration.xml index 23afc237d..90fbbff37 100644 --- a/extensions/tags/tests/phpunit.integration.xml +++ b/extensions/tags/tests/phpunit.integration.xml @@ -19,6 +19,7 @@ ./integration + ./integration/tmp diff --git a/framework/core/composer.json b/framework/core/composer.json index ed445b16e..f8affcc0c 100644 --- a/framework/core/composer.json +++ b/framework/core/composer.json @@ -146,10 +146,12 @@ "test:integration": "Runs all integration tests.", "test:setup": "Sets up a database for use with integration tests. Execute this only once." }, - "repositories": [{ + "repositories": [ + { "type": "path", "url": "../../*/*" - }], + } + ], "minimum-stability": "dev", "prefer-stable": true }