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/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 92% rename from adder-template/README.md rename to community-adder-template/README.md index 5d98a5e5d..6785a6b56 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! @@ -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 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 82% rename from adder-template/src/config/adder.js rename to community-adder-template/src/config/adder.js index b2c5d5ec9..0836054c8 100644 --- a/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; } 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 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/**'