From 7a78bbf369b35fa6d7c0544a4f3d8dd872a1a2ea Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Tue, 11 Mar 2025 11:55:36 -0400 Subject: [PATCH 1/4] restructuring the json file --- .github/workflows/update-readme.yml | 31 ++++++---- templates.json | 92 +++++++++++++++++++++++------ 2 files changed, 94 insertions(+), 29 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index a6ce751..5c3b2d0 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - restructure permissions: contents: write @@ -85,13 +86,18 @@ jobs: // Generate official starter kits list with sorting by installs const officialKits = []; - for (const [name, repo] of Object.entries(templates.official)) { - const packageData = await getPackageData(repo); + for (const kit of templates.official) { + const packageData = await getPackageData(kit.package); // Ensure installs is a number for proper sorting const installs = packageData && packageData.package && packageData.package.downloads ? parseInt(packageData.package.downloads.total, 10) : 0; - officialKits.push({ name, repo, installs }); - console.log(`Added official kit: ${name}, installs: ${installs}`); + officialKits.push({ + title: kit.title, + package: kit.package, + repo: kit.repo, + installs: installs + }); + console.log(`Added official kit: ${kit.title}, package: ${kit.package}, repo: ${kit.repo}, installs: ${installs}`); } // Sort official kits by installs (descending) @@ -101,18 +107,23 @@ jobs: // Generate the formatted list let officialList = ''; for (const kit of officialKits) { - officialList += `- [${kit.name}](https://github.com/${kit.repo}) - \`${kit.repo}\` - 💿 ${formatNumber(kit.installs)} installs\n`; + officialList += `- [${kit.title}](https://github.com/${kit.repo}) - \`${kit.package}\` - 💿 ${formatNumber(kit.installs)} installs\n`; } // Generate community starter kits list with sorting by installs const communityKits = []; - for (const [name, repo] of Object.entries(templates.community)) { - const packageData = await getPackageData(repo); + for (const kit of templates.community) { + const packageData = await getPackageData(kit.package); // Ensure installs is a number for proper sorting const installs = packageData && packageData.package && packageData.package.downloads ? parseInt(packageData.package.downloads.total, 10) : 0; - communityKits.push({ name, repo, installs }); - console.log(`Added community kit: ${name}, installs: ${installs}`); + communityKits.push({ + title: kit.title, + package: kit.package, + repo: kit.repo, + installs: installs + }); + console.log(`Added community kit: ${kit.title}, package: ${kit.package}, repo: ${kit.repo}, installs: ${installs}`); } // Sort community kits by installs (descending) @@ -122,7 +133,7 @@ jobs: // Generate the formatted list let communityList = ''; for (const kit of communityKits) { - communityList += `- [${kit.name}](https://github.com/${kit.repo}) - \`${kit.repo}\` - 💾 ${formatNumber(kit.installs)} installs\n`; + communityList += `- [${kit.title}](https://github.com/${kit.repo}) - \`${kit.package}\` - 💾 ${formatNumber(kit.installs)} installs\n`; } // Replace placeholders in README diff --git a/templates.json b/templates.json index e0d7e98..ea10f3d 100644 --- a/templates.json +++ b/templates.json @@ -1,20 +1,74 @@ { - "official": { - "React": "laravel/react-starter-kit", - "Vue": "laravel/vue-starter-kit", - "Livewire": "laravel/livewire-starter-kit" - }, - "community": { - "Statamic": "statamic/statamic", - "Cachet": "cachethq/cachet", - "Svelte": "oseughu/svelte-starter-kit", - "Wave": "devdojo/wave", - "Genesis": "devdojo/genesis", - "Filament": "tnylea/filamentapp", - "Livewire Starter": "tnylea/livewire-starter", - "Larasonic React": "shipfastlabs/larasonic-react", - "Larasonic Vue": "shipfastlabs/larasonic-vue", - "TALL starters": "mortenebak/tallstarter", - "Filament Zeus starters": "lara-zeus/zeus" - } -} + "official": [{ + "title": "React", + "package": "laravel/react-starter-kit", + "repo": "laravel/react-starter-kit" + }, + { + "title": "Vue", + "package": "laravel/vue-starter-kit", + "repo": "laravel/vue-starter-kit" + }, + { + "title": "Livewire", + "package": "laravel/livewire-starter-kit", + "repo": "laravel/livewire-starter-kit" + } + ], + "community": [{ + "title": "Statamic", + "package": "statamic/statamic", + "repo": "statamic/statamic" + }, + { + "title": "Cachet", + "package": "cachethq/cachet", + "repo": "cachethq/cachet" + }, + { + "title": "Svelte", + "package": "oseughu/svelte-starter-kit", + "repo": "oseughu/svelte-starter-kit" + }, + { + "title": "Wave", + "package": "devdojo/wave", + "repo": "thedevdojo/wave" + }, + { + "title": "Genesis", + "package": "devdojo/genesis", + "repo": "thedevdojo/genesis" + }, + { + "title": "Filament", + "package": "tnylea/filamentapp", + "repo": "tnylea/filamentapp" + }, + { + "title": "Livewire Starter", + "package": "tnylea/livewire-starter", + "repo": "tnylea/livewire-starter" + }, + { + "title": "Larasonic React", + "package": "shipfastlabs/larasonic-react", + "repo": "shipfastlabs/larasonic-react" + }, + { + "title": "Larasonic Vue", + "package": "shipfastlabs/larasonic-vue", + "repo": "shipfastlabs/larasonic-vue" + }, + { + "title": "TALL starters", + "package": "mortenebak/tallstarter", + "repo": "mortenebak/tallstarter" + }, + { + "title": "Filament Zeus starters", + "package": "lara-zeus/zeus", + "repo": "lara-zeus/zeus" + } + ] +} \ No newline at end of file From 46cb73dc209b15f303f94356fa7b0fc763cff2b8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 11 Mar 2025 15:55:52 +0000 Subject: [PATCH 2/4] Update README with latest starter kits from template --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edb7067..646b077 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ Using the [Laravel installer](https://laravel.com/docs/installation#installing-p ## Community Templates - [Statamic](https://github.com/statamic/statamic) - `statamic/statamic` - 💾 133,328 installs -- [Genesis](https://github.com/devdojo/genesis) - `devdojo/genesis` - 💾 8,688 installs +- [Genesis](https://github.com/thedevdojo/genesis) - `devdojo/genesis` - 💾 8,688 installs - [Filament Zeus starters](https://github.com/lara-zeus/zeus) - `lara-zeus/zeus` - 💾 762 installs - [Cachet](https://github.com/cachethq/cachet) - `cachethq/cachet` - 💾 405 installs -- [Wave](https://github.com/devdojo/wave) - `devdojo/wave` - 💾 25 installs +- [Wave](https://github.com/thedevdojo/wave) - `devdojo/wave` - 💾 25 installs - [TALL starters](https://github.com/mortenebak/tallstarter) - `mortenebak/tallstarter` - 💾 10 installs - [Svelte](https://github.com/oseughu/svelte-starter-kit) - `oseughu/svelte-starter-kit` - 💾 4 installs - [Livewire Starter](https://github.com/tnylea/livewire-starter) - `tnylea/livewire-starter` - 💾 2 installs From d25288f90f6c044299ecf6d05cbbd02e7537475a Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Tue, 11 Mar 2025 11:58:27 -0400 Subject: [PATCH 3/4] Applying restructure --- templates.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/templates.json b/templates.json index ea10f3d..007271f 100644 --- a/templates.json +++ b/templates.json @@ -61,7 +61,7 @@ "repo": "shipfastlabs/larasonic-vue" }, { - "title": "TALL starters", + "title": "TALL starter", "package": "mortenebak/tallstarter", "repo": "mortenebak/tallstarter" }, @@ -69,6 +69,21 @@ "title": "Filament Zeus starters", "package": "lara-zeus/zeus", "repo": "lara-zeus/zeus" + }, + { + "title": "Modern Livewire Starter Kit", + "package": "shipfastlabs/modern-livewire-starter-kit", + "repo": "shipfastlabs/modern-livewire-starter-kit" + }, + { + "title": "Modern Vue Starter Kit", + "package": "shipfastlabs/modern-vue-starter-kit", + "repo": "shipfastlabs/modern-vue-starter-kit" + }, + { + "title": "Modern React Starter Kit", + "package": "shipfastlabs/modern-react-starter-kit", + "repo": "shipfastlabs/modern-react-starter-kit" } ] } \ No newline at end of file From f1e888ac6a8ac3dd504a29ce5067836213f9e6ac Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 11 Mar 2025 15:59:04 +0000 Subject: [PATCH 4/4] Update README with latest starter kits from template --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 646b077..3e69570 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,15 @@ Using the [Laravel installer](https://laravel.com/docs/installation#installing-p - [Filament Zeus starters](https://github.com/lara-zeus/zeus) - `lara-zeus/zeus` - 💾 762 installs - [Cachet](https://github.com/cachethq/cachet) - `cachethq/cachet` - 💾 405 installs - [Wave](https://github.com/thedevdojo/wave) - `devdojo/wave` - 💾 25 installs -- [TALL starters](https://github.com/mortenebak/tallstarter) - `mortenebak/tallstarter` - 💾 10 installs +- [TALL starter](https://github.com/mortenebak/tallstarter) - `mortenebak/tallstarter` - 💾 10 installs - [Svelte](https://github.com/oseughu/svelte-starter-kit) - `oseughu/svelte-starter-kit` - 💾 4 installs - [Livewire Starter](https://github.com/tnylea/livewire-starter) - `tnylea/livewire-starter` - 💾 2 installs - [Larasonic Vue](https://github.com/shipfastlabs/larasonic-vue) - `shipfastlabs/larasonic-vue` - 💾 1 installs +- [Modern Vue Starter Kit](https://github.com/shipfastlabs/modern-vue-starter-kit) - `shipfastlabs/modern-vue-starter-kit` - 💾 1 installs - [Filament](https://github.com/tnylea/filamentapp) - `tnylea/filamentapp` - 💾 0 installs - [Larasonic React](https://github.com/shipfastlabs/larasonic-react) - `shipfastlabs/larasonic-react` - 💾 0 installs +- [Modern Livewire Starter Kit](https://github.com/shipfastlabs/modern-livewire-starter-kit) - `shipfastlabs/modern-livewire-starter-kit` - 💾 0 installs +- [Modern React Starter Kit](https://github.com/shipfastlabs/modern-react-starter-kit) - `shipfastlabs/modern-react-starter-kit` - 💾 0 installs ---