Skip to content

Commit 8f6a84d

Browse files
committed
replace SolidStart templates with the ones in templates repository
1 parent de9992b commit 8f6a84d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/create/src/create-start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type CreateStartArgs = {
1111
export const createStartTS = ({ template, destination }: CreateStartArgs) => {
1212
return downloadRepo(
1313
{
14-
repo: { owner: "solidjs", name: "solid-start", subdir: `examples/${template}` },
14+
repo: { owner: "solidjs", name: "templates", subdir: `solid-start/${template}` },
1515
dest: destination,
1616
},
1717
GithubFetcher,

packages/create/src/utils/constants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ const VANILLA_TEMPLATES = [
5959
] as const satisfies string[];
6060
export type VanillaTemplate = (typeof VANILLA_TEMPLATES)[number];
6161

62-
/**Supported Start Templates */
62+
/**
63+
* @description This list is hardcoded. But templates are fetched from another github repo.
64+
* @see https://github.com/solidjs/templates/tree/main/solid-start
65+
*/
6366
const START_TEMPLATES = [
6467
"basic",
6568
"bare",
66-
"hackernews",
67-
"notes",
68-
"todomvc",
6969
"with-solidbase",
7070
"with-auth",
7171
"with-authjs",
@@ -79,8 +79,8 @@ const START_TEMPLATES = [
7979
"with-unocss",
8080
"with-vitest",
8181
"with-strict-csp",
82-
"experiments",
8382
] as const satisfies string[];
83+
8484
export type StartTemplate = (typeof START_TEMPLATES)[number];
8585

8686
/**Supported Library Templates */
@@ -118,5 +118,5 @@ export function isValidTemplate(type: "start", maybe_template: string): maybe_te
118118
export function isValidTemplate(type: "library", maybe_template: string): maybe_template is LibraryTemplate;
119119
export function isValidTemplate(type: ProjectType, maybe_template: string) {
120120
const templates = getTemplatesList(type);
121-
return templates.find(t => t === maybe_template) !== undefined
121+
return templates.find((t) => t === maybe_template) !== undefined;
122122
}

0 commit comments

Comments
 (0)