Skip to content

Commit d72f445

Browse files
authored
feat: add svelte frontend templates for create command (#129)
1 parent 3928548 commit d72f445

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

src/commands/create/groups/frontend.ts

+77-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ import { askForTemplate, setupTemplate, getUniqueValues, askForPackageManager, s
88
import type { GenericTemplate } from "../index.js";
99

1010
type Template = GenericTemplate & {
11-
framework: "Vue - Nuxt 3" | "Vue - Vite" | "React - Next.js" | "React - Vite";
11+
framework:
12+
| "Vue - Nuxt 3"
13+
| "Vue - Vite"
14+
| "React - Next.js"
15+
| "React - Vite"
16+
| "Svelte - SvelteKit"
17+
| "Svelte - Vite";
1218
ethereumFramework: "Ethers v5" | "Ethers v6" | "viem";
1319
requiresWalletConnectProjectId?: boolean;
1420
};
@@ -162,6 +168,76 @@ export const templates: Template[] = [
162168
path: "templates/react/vite-ethers5",
163169
git: "https://github.com/matter-labs/zksync-frontend-templates",
164170
},
171+
172+
/* Svelte SvelteKit */
173+
{
174+
name: "wagmi",
175+
value: "sveltekit_wagmi",
176+
framework: "Svelte - SvelteKit",
177+
ethereumFramework: "viem",
178+
path: "templates/svelte/sveltekit-wagmi",
179+
git: "https://github.com/matter-labs/zksync-frontend-templates",
180+
},
181+
{
182+
name: "wagmi + Web3Modal",
183+
value: "sveltekit_wagmi_web3modal",
184+
framework: "Svelte - SvelteKit",
185+
ethereumFramework: "viem",
186+
requiresWalletConnectProjectId: true,
187+
path: "templates/svelte/sveltekit-wagmi-web3modal",
188+
git: "https://github.com/matter-labs/zksync-frontend-templates",
189+
},
190+
{
191+
name: "Ethers v6",
192+
value: "sveltekit_ethers6",
193+
framework: "Svelte - SvelteKit",
194+
ethereumFramework: "Ethers v6",
195+
path: "templates/svelte/sveltekit-ethers",
196+
git: "https://github.com/matter-labs/zksync-frontend-templates",
197+
},
198+
{
199+
name: "Ethers v5",
200+
value: "sveltekit_ethers5",
201+
framework: "Svelte - SvelteKit",
202+
ethereumFramework: "Ethers v5",
203+
path: "templates/svelte/sveltekit-ethers5",
204+
git: "https://github.com/matter-labs/zksync-frontend-templates",
205+
},
206+
207+
/* Svelte Vite */
208+
{
209+
name: "wagmi",
210+
value: "svelte_vite_wagmi",
211+
framework: "Svelte - Vite",
212+
ethereumFramework: "viem",
213+
path: "templates/svelte/vite-wagmi",
214+
git: "https://github.com/matter-labs/zksync-frontend-templates",
215+
},
216+
{
217+
name: "wagmi + Web3Modal",
218+
value: "svelte_vite_wagmi_web3modal",
219+
framework: "Svelte - Vite",
220+
ethereumFramework: "viem",
221+
requiresWalletConnectProjectId: true,
222+
path: "templates/svelte/vite-wagmi-web3modal",
223+
git: "https://github.com/matter-labs/zksync-frontend-templates",
224+
},
225+
{
226+
name: "Ethers v6",
227+
value: "svelte_vite_ethers6",
228+
framework: "Svelte - Vite",
229+
ethereumFramework: "Ethers v6",
230+
path: "templates/svelte/vite-ethers",
231+
git: "https://github.com/matter-labs/zksync-frontend-templates",
232+
},
233+
{
234+
name: "Ethers v5",
235+
value: "svelte_vite_ethers5",
236+
framework: "Svelte - Vite",
237+
ethereumFramework: "Ethers v5",
238+
path: "templates/svelte/vite-ethers5",
239+
git: "https://github.com/matter-labs/zksync-frontend-templates",
240+
},
165241
];
166242

167243
export default async (folderLocation: string, folderRelativePath: string, templateKey?: string) => {

0 commit comments

Comments
 (0)