forked from clerk/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtanstack.ts
More file actions
33 lines (29 loc) · 1.38 KB
/
Copy pathtanstack.ts
File metadata and controls
33 lines (29 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { applicationConfig } from '../models/applicationConfig.js';
import { templates } from '../templates/index.js';
const clerkTanStackLocal = `file:${process.cwd()}/packages/tanstack-start`;
const router = applicationConfig()
.setName('tanstack-router')
.useTemplate(templates['tanstack-router'])
.setEnvFormatter('public', key => `VITE_${key}`)
// `--install-links` ensures that the @clerk/tanstack-start is installed as a regular dependancie instead of creating symlink
// please do not remove this flag as it's going to break the setup
.addScript('setup', 'npm i --install-links')
.addScript('dev', 'npm run dev')
.addScript('build', 'npm run build')
.addScript('serve', 'npm run start')
.addDependency('@clerk/tanstack-start', clerkTanStackLocal);
const start = applicationConfig()
.setName('tanstack-start')
.useTemplate(templates['tanstack-start'])
.setEnvFormatter('public', key => `VITE_${key}`)
// `--install-links` ensures that the @clerk/tanstack-start is installed as a regular dependancie instead of creating symlink
// please do not remove this flag as it's going to break the setup
.addScript('setup', 'npm i --install-links')
.addScript('dev', 'npm run dev')
.addScript('build', 'npm run build')
.addScript('serve', 'npm run start')
.addDependency('@clerk/tanstack-start', clerkTanStackLocal);
export const tanstack = {
start,
router,
} as const;