Skip to content

Commit 076089f

Browse files
committed
feat: add linting via eslint, add typecheck via nuxt typecheck and vue-tsc, add vscode config to support eslint + typechecking
1 parent 4909752 commit 076089f

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ docs/
77
.DS_Store
88

99
# default output of cli
10-
my-sidebase-app
10+
my-sidebase-*

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const main = async () => {
3434
}
3535

3636
// 1. Download the Nuxt 3 template
37-
const template = await wrapInSpinner(`Adding Nuxt 3 ${preferences.setStack} template`, downloadTemplate, preferences)
37+
const template = await wrapInSpinner(`Adding Nuxt 3 ${preferences.setStack}-template`, downloadTemplate, preferences)
3838

3939
// 2. Add modules
4040
if (preferences.setStack === "merino") {

src/prompts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ import { getUserPkgManager } from "./utils/getUserPkgManager"
55

66
const skipIfCheviotWasChosen = (typeIfNotMerino: PromptType) => (_: unknown, preferences: Record<string, string>) => preferences.setStack === "cheviot" ? null : typeIfNotMerino
77

8+
const PROJECT_NAME_NOUNS = ["app", "project", "endeavour", "undertaking", "enterprise", "venture", "experiment", "effort", "operation", "affair", "pursuit", "struggle", "adventure", "thing"]
9+
const getRandomProjectNoun = () => PROJECT_NAME_NOUNS[Math.floor((Math.random() * PROJECT_NAME_NOUNS.length))]
10+
811
const PROMPT_QUESTIONS: PromptObject[] = [
912
{
1013
type: "text",
1114
name: "setProjectName",
1215
message: "What will your project be called?",
13-
initial: "my-sidebase-app"
16+
initial: `my-sidebase-${getRandomProjectNoun()}`
1417
},
1518
{
1619
type: "select",

src/steps/1.downloadTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFile } from "node:fs/promises"
66
import { say } from "../messages"
77

88
const KNOWN_TEMPLATES = {
9-
"merino": "v3",
9+
"merino": "github:sidebase/merino#v3",
1010
"cheviot": "community/sidebase"
1111
}
1212

src/steps/2.addModules/moduleConfigs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const hello = await $client.hello.useQuery({ text: 'client' })
213213
<template>
214214
<div>
215215
<!-- As \`superjson\` is already pre-configured, we can use \`time\` as a \`Date\` object without further deserialization 🎉 -->
216-
<p>tRPC Data: {{ hello.data.value?.greeting }} send at {{ hello.data.value?.time.toLocaleDateString() }}</p>
216+
<p>tRPC Data: "{{ hello.data.value?.greeting }}" send at "{{ hello.data.value?.time.toLocaleDateString() }}".</p>
217217
</div>
218218
</template>
219219
`

0 commit comments

Comments
 (0)