From cd387d6ed4937f909ced3e162221819f901b1286 Mon Sep 17 00:00:00 2001 From: Manuel Serret Date: Thu, 3 Oct 2024 16:55:07 +0200 Subject: [PATCH 1/4] chore: rename community adder template --- {adder-template => community-adder-template}/.gitignore | 0 {adder-template => community-adder-template}/README.md | 2 +- {adder-template => community-adder-template}/jsconfig.json | 0 {adder-template => community-adder-template}/package.json | 2 +- .../src/config/adder.js | 0 .../src/config/checks.js | 0 .../src/config/options.js | 0 .../src/config/tests.js | 0 {adder-template => community-adder-template}/src/index.js | 0 9 files changed, 2 insertions(+), 2 deletions(-) rename {adder-template => community-adder-template}/.gitignore (100%) rename {adder-template => community-adder-template}/README.md (98%) rename {adder-template => community-adder-template}/jsconfig.json (100%) rename {adder-template => community-adder-template}/package.json (92%) rename {adder-template => community-adder-template}/src/config/adder.js (100%) rename {adder-template => community-adder-template}/src/config/checks.js (100%) rename {adder-template => community-adder-template}/src/config/options.js (100%) rename {adder-template => community-adder-template}/src/config/tests.js (100%) rename {adder-template => community-adder-template}/src/index.js (100%) diff --git a/adder-template/.gitignore b/community-adder-template/.gitignore similarity index 100% rename from adder-template/.gitignore rename to community-adder-template/.gitignore diff --git a/adder-template/README.md b/community-adder-template/README.md similarity index 98% rename from adder-template/README.md rename to community-adder-template/README.md index 5d98a5e5d..464c84f55 100644 --- a/adder-template/README.md +++ b/community-adder-template/README.md @@ -1,4 +1,4 @@ -# adder-template-js +# community-adder-template > [!IMPORTANT] > This template's dependencies may not be up-to-date; be sure to update them to the latest! diff --git a/adder-template/jsconfig.json b/community-adder-template/jsconfig.json similarity index 100% rename from adder-template/jsconfig.json rename to community-adder-template/jsconfig.json diff --git a/adder-template/package.json b/community-adder-template/package.json similarity index 92% rename from adder-template/package.json rename to community-adder-template/package.json index 4400c5c41..860b942c8 100644 --- a/adder-template/package.json +++ b/community-adder-template/package.json @@ -1,5 +1,5 @@ { - "name": "adder-template", + "name": "community-adder-template", "version": "0.0.0", "license": "MIT", "type": "module", diff --git a/adder-template/src/config/adder.js b/community-adder-template/src/config/adder.js similarity index 100% rename from adder-template/src/config/adder.js rename to community-adder-template/src/config/adder.js diff --git a/adder-template/src/config/checks.js b/community-adder-template/src/config/checks.js similarity index 100% rename from adder-template/src/config/checks.js rename to community-adder-template/src/config/checks.js diff --git a/adder-template/src/config/options.js b/community-adder-template/src/config/options.js similarity index 100% rename from adder-template/src/config/options.js rename to community-adder-template/src/config/options.js diff --git a/adder-template/src/config/tests.js b/community-adder-template/src/config/tests.js similarity index 100% rename from adder-template/src/config/tests.js rename to community-adder-template/src/config/tests.js diff --git a/adder-template/src/index.js b/community-adder-template/src/index.js similarity index 100% rename from adder-template/src/index.js rename to community-adder-template/src/index.js From f46b28acb914df56e3000aa8b1bfad7cdfc7e828 Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:02:27 -0400 Subject: [PATCH 2/4] missed spots --- README.md | 2 +- community-adder-template/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb402c5e3..63c9c02e6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Read the [SvelteKit documentation](https://kit.svelte.dev/docs) for more details ## Community adders -Get started on [creating your own community adder](/adder-template/README.md). +Get started on [creating your own community adder](/community-adder-template/README.md). [Additional adders](https://www.sveltesociety.dev/packages?category=svelte-add) are maintained by the community. diff --git a/community-adder-template/README.md b/community-adder-template/README.md index 464c84f55..6785a6b56 100644 --- a/community-adder-template/README.md +++ b/community-adder-template/README.md @@ -11,7 +11,7 @@ The adder template for community adders for [`sv`](https://github.com/sveltejs/c Use [`degit`](https://github.com/Rich-Harris/degit) to clone the template: ```shell -npx degit sveltejs/cli/adder-template adder-name +npx degit sveltejs/cli/community-adder-template adder-name ``` ## Using the adder @@ -48,7 +48,7 @@ To execute the newly published package with `sv`, run: npx sv add --community npm:adder-package-name ``` -After that, feel free to open a pull request to [`sv`](https://github.com/sveltejs/cli) and add your adder to the [community list](/community/). +After that, feel free to open a pull request to [`sv`](https://github.com/sveltejs/cli) and add your adder to the [community list](/community-adders/). ## Things to be aware of From 9289e63c62eea9530d20c6508f044a518ceb0a24 Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:02:30 -0400 Subject: [PATCH 3/4] tweak name --- community-adder-template/src/config/adder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/community-adder-template/src/config/adder.js b/community-adder-template/src/config/adder.js index b2c5d5ec9..0836054c8 100644 --- a/community-adder-template/src/config/adder.js +++ b/community-adder-template/src/config/adder.js @@ -4,8 +4,8 @@ import { imports } from '@svelte-cli/core/js'; export const adder = defineAdderConfig({ metadata: { - id: 'adder-template', - name: 'Adder Template', + id: 'community-adder-template', + name: 'Community Adder Template', description: 'An adder template demo', environments: { kit: true, svelte: true } }, @@ -18,7 +18,7 @@ export const adder = defineAdderConfig({ contentType: 'text', content: ({ content, options }) => { if (options.demo) { - return 'This is a text file made by the Adder Template demo!'; + return 'This is a text file made by the Community Adder Template demo!'; } return content; } From 612d66adfcaa88568701b46f142f9f6e8d023594 Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:04:24 -0400 Subject: [PATCH 4/4] lockfile --- pnpm-lock.yaml | 2 +- pnpm-workspace.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 253b90859..fd6f056a9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,7 +75,7 @@ importers: specifier: ^2.0.5 version: 2.0.5(@types/node@22.5.4)(@vitest/ui@2.0.5) - adder-template: + community-adder-template: dependencies: '@svelte-cli/core': specifier: workspace:* diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 593d86d5d..0133305e3 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,4 @@ packages: - 'packages/*' - - 'adder-template' + - 'community-adder-template' - '!.test-tmp/**'