Skip to content

Commit c7557d2

Browse files
committed
fix(templates): add missing args for next app
1 parent d55ee1c commit c7557d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/templates/frontend.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ var FRONTEND_TEMPLATES = []Item{
55
{Title: "vue-ts", Desc: "Generate Vue.js App Template in TypeScript", Command: "npm", CommandArgs: "init --y vite@latest my-vue-typescript-app -- --template vue-ts"},
66
{Title: "react", Desc: "Generate React.js App Template", Command: "npm", CommandArgs: "init --y vite@latest my-react-app -- --template react"},
77
{Title: "react-ts", Desc: "Generate React.js App Template in TypeScript", Command: "npm", CommandArgs: "init --y vite@latest my-react-typescript-app -- --template react-ts"},
8-
{Title: "next", Desc: "Generate Next.js App Template", Command: "npm", CommandArgs: "init --y vite@latest my-next-app -- --template next"},
9-
{Title: "next-ts", Desc: "Generate Next.js App Template in TypeScript", Command: "npm", CommandArgs: "init --y vite@latest my-next-typescript-app -- --template next-ts"},
8+
// TODO: move to prompt
9+
{Title: "next", Desc: "Generate Next.js App Template", Command: "npx", CommandArgs: "--yes create-next-app my-next-app --eslint --src-dir --experimental-app false --use-npm --import-alias '@/*' --js"},
10+
{Title: "next-ts", Desc: "Generate Next.js App Template in TypeScript", Command: "npx", CommandArgs: "--y create-next-app my-next-typescript-app --eslint --src-dir --experimental-app false --use-npm --import-alias '@/*' --ts"},
1011
{Title: "vanilla", Desc: "Generate Vanilla.js App Template", Command: "npm", CommandArgs: "init --y vite@latest my-vanilla-app -- --template vanilla"},
1112
{Title: "vanilla-ts", Desc: "Generate Vanilla.js App Template in TypeScript", Command: "npm", CommandArgs: "init --y vite@latest my-vanilla-typescript-app -- --template vanilla-ts"},
1213
{Title: "gatsby", Desc: "Generate Gatsby App Template", Command: "npm", CommandArgs: "init --y vite@latest my-gatsby-app -- --template gatsby"},

0 commit comments

Comments
 (0)