-
Notifications
You must be signed in to change notification settings - Fork 13
/
Tiltfile
41 lines (37 loc) · 1.12 KB
/
Tiltfile
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
34
35
36
37
38
39
40
41
local_resource(
name='pnpm-install',
cmd='pnpm install',
labels=['scripts'],
)
local_resource(
name='generate-api',
allow_parallel=True,
cmd='pnpm generate',
labels=['documentation'],
resource_deps=['pnpm-install'],
deps=['scripts/generateApiDocumentationPage.ts', 'scripts/generateApiDocumentationPage.constants.ts', 'scripts/generateApiDocumentationPage.types.ts'],
)
documentation_env = {
'NEXT_PUBLIC_UNLEASH_APP_NAME': 'cdm',
'NEXT_PUBLIC_UNLEASH_CLIENT_KEY': 'cdm:development.23c5337748c2fa1433ab463704660120ff4b3430451b3274ab53a909',
'NEXT_PUBLIC_UNLEASH_URL': 'https://unleash.botpress.dev/proxy',
'NEXT_PUBLIC_BOT_URL': 'https://webhook.botpress.cloud/141bd36a-fbe7-4926-849c-1a793121196c',
}
local_resource(
name='documentation',
allow_parallel=True,
serve_cmd='pnpm dev',
labels=['documentation'],
resource_deps=['generate-api'],
links=['http://localhost:3000'],
serve_env=documentation_env,
)
local_resource(
name='documentation-build',
allow_parallel=True,
labels=['documentation'],
auto_init=False,
cmd='pnpm build',
env=documentation_env,
resource_deps=['generate-api'],
)