turned template into create cli
This commit is contained in:
9
template/packages/sanity-connection/index.ts
Normal file
9
template/packages/sanity-connection/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const sanityConnection = {
|
||||
pageTitle: "lumify template",
|
||||
publicViewerToken: "skX06BHIWzgWfkt52091aJgLmYEwFJ7ufghsXi0wRXRkW2Nom8mzfYnFpSVJH1toNy0e34Hot2yTwjLxHCjhsWLZiC0qjR19WI6b9WEFj04shHMZCiS09LgRuzd9BnEgewAQpJUAbhdSwg3NOg8rOhZXpHyciAoYwLqhaTHP6g0FDpiZFrb5",
|
||||
studioHost: "vaporvee",
|
||||
studioUrl: "https://vaporvee.sanity.studio", // normaly https://<studioHost>.sanity.studio
|
||||
projectId: "ax04yw0e",
|
||||
previewUrl: "http://localhost:3000",
|
||||
dataset: "production", // leave as "production" for the main dataset
|
||||
};
|
||||
11
template/packages/sanity-connection/package.json
Normal file
11
template/packages/sanity-connection/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@repo/sanity-connection",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
27
template/packages/sanity-connection/tsconfig.json
Normal file
27
template/packages/sanity-connection/tsconfig.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
// Enable latest features
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "force",
|
||||
"jsx": "react-jsx",
|
||||
"allowJs": true,
|
||||
|
||||
// Bundler mode
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"noEmit": true,
|
||||
|
||||
// Best practices
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// Some stricter flags (disabled by default)
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noPropertyAccessFromIndexSignature": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user