From a5a3a5843bb21a0d8cfa3622090643b6a065e758 Mon Sep 17 00:00:00 2001 From: edalzell Date: Tue, 13 Oct 2026 18:42:30 -0700 Subject: [PATCH] Commit built CP assets instead of downloading them --- .github/workflows/release-publish.yml | 2 -- .gitignore | 3 ++- .nvmrc | 1 + composer.json | 6 ------ dist/build/assets/cp-4834b1d9.js | 1 + dist/build/assets/cp-b7ada135.css | 1 + dist/build/manifest.json | 12 ++++++++++++ 7 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .nvmrc create mode 100644 dist/build/assets/cp-4834b1d9.js create mode 100644 dist/build/assets/cp-b7ada135.css create mode 100644 dist/build/manifest.json diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 40629b7..85d9082 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -9,8 +9,6 @@ jobs: uses: edalzell/github-workflows/.github/workflows/release-publish.yml@9f72f0b77303abff9903b16da75346b1eb1c3785 # v1.4.0 permissions: contents: write - with: - upload_assets: true rebuild-satis: needs: publish diff --git a/.gitignore b/.gitignore index 9c9acfa..e8f9c52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ /node_modules /vendor -/dist /mix-manifest.json /composer.lock /yarn.lock /package-lock.json /.phpunit.cache /.phpunit.result.cache +/dist/hot +/tests/__fixtures__ diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24 diff --git a/composer.json b/composer.json index 72ac428..6f294c4 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,6 @@ "name": "transformstudios/front", "require": { "php": "^8.5", - "pixelfear/composer-dist-plugin": "^0.1.4", "statamic/cms": "^6.0" }, "require-dev": { @@ -23,10 +22,6 @@ } }, "extra": { - "download-dist": { - "url": "https://pkgs.trns.fm/assets/front/{$version}/dist.tar.gz", - "path": "dist" - }, "statamic": { "name": "Statamic Front", "description": "Statamic Front addon" @@ -39,7 +34,6 @@ }, "config": { "allow-plugins": { - "pixelfear/composer-dist-plugin": true, "pestphp/pest-plugin": true } } diff --git a/dist/build/assets/cp-4834b1d9.js b/dist/build/assets/cp-4834b1d9.js new file mode 100644 index 0000000..1e5ca3f --- /dev/null +++ b/dist/build/assets/cp-4834b1d9.js @@ -0,0 +1 @@ +Statamic.booted(()=>{let t=Statamic.$config.get("front");if(t&&t.chatId){var a=document.createElement("script");a.src="https://chat-assets.frontapp.com/v1/chat.bundle.js",document.body.appendChild(a),a.addEventListener("load",()=>{window.FrontChat("init",{chatId:t.chatId,email:t.email,name:t.name,userHash:t.hash,useDefaultLauncher:!0})})}}); diff --git a/dist/build/assets/cp-b7ada135.css b/dist/build/assets/cp-b7ada135.css new file mode 100644 index 0000000..4636458 --- /dev/null +++ b/dist/build/assets/cp-b7ada135.css @@ -0,0 +1 @@ +#front-chat-container{z-index:100!important}#front-chat-container .fc-1_tjF{display:none!important}#front-chat-iframe{z-index:1!important} diff --git a/dist/build/manifest.json b/dist/build/manifest.json new file mode 100644 index 0000000..09220fd --- /dev/null +++ b/dist/build/manifest.json @@ -0,0 +1,12 @@ +{ + "resources/css/cp.css": { + "file": "assets/cp-b7ada135.css", + "isEntry": true, + "src": "resources/css/cp.css" + }, + "resources/js/cp.js": { + "file": "assets/cp-4834b1d9.js", + "isEntry": true, + "src": "resources/js/cp.js" + } +} \ No newline at end of file