Skip to content

Commit 8f1cbea

Browse files
committed
organize vanilla templates
1 parent 33081c0 commit 8f1cbea

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

packages/create/src/create-vanilla.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ export const createVanilla = (args: CreateVanillaArgs, transpile?: boolean) => {
1515
}
1616
return createVanillaTS(args);
1717
};
18+
1819
export const createVanillaTS = async ({ template, destination }: CreateVanillaArgs) => {
1920
return await downloadRepo(
20-
{ repo: { owner: "solidjs", name: "templates", subdir: template }, dest: destination },
21+
{ repo: { owner: "solidjs", name: "templates", subdir: `vanilla/${template}` }, dest: destination },
2122
GithubFetcher,
2223
);
2324
};

packages/create/src/utils/constants.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,19 @@ export const JS_CONFIG = {
4242

4343
/**Supported Vanilla Templates */
4444
const VANILLA_TEMPLATES = [
45-
"ts",
46-
"ts-vitest",
47-
"ts-uvu",
48-
"ts-unocss",
49-
"ts-tailwindcss",
50-
"ts-sass",
51-
"ts-router",
52-
"ts-router-file-based",
53-
"ts-minimal",
54-
"ts-jest",
55-
"ts-bootstrap",
56-
"js",
57-
"js-vitest",
58-
"js-tailwindcss",
45+
"basic",
46+
"bare",
47+
"with-vitest",
48+
"with-uvu",
49+
"with-unocss",
50+
"with-tailwindcss",
51+
"with-sass",
52+
"with-solid-router",
53+
"with-pages-router-file-based",
54+
"with-tanstack-router-config-based",
55+
"with-tanstack-router-file-based",
56+
"with-jest",
57+
"with-bootstrap",
5958
] as const satisfies string[];
6059
export type VanillaTemplate = (typeof VANILLA_TEMPLATES)[number];
6160

0 commit comments

Comments
 (0)