|
1 | 1 | experimental_monorepo_root = true |
2 | 2 |
|
3 | 3 | [monorepo] |
4 | | -config_roots = [ |
5 | | - "apps/*", |
6 | | - "packages/*", |
7 | | -] |
| 4 | +config_roots = ["apps/*", "packages/*"] |
8 | 5 |
|
9 | 6 | [settings] |
10 | 7 | experimental = true |
@@ -46,19 +43,64 @@ hadolint = "latest" |
46 | 43 | "github:Infisical/cli" = "latest" |
47 | 44 |
|
48 | 45 | [tasks] |
49 | | -"db:migrate" = { depends = ["//apps/api:migrate"], description = "Run database migrations" } |
50 | | -"dev:mobile" = { depends = ["//apps/api:dev", "//apps/mobile:dev"], description = "Start API and Mobile services" } |
51 | | -dev = { depends = ["//apps/api:dev", "//apps/worker:dev"], description = "Start all services" } |
52 | | -format = { depends = ["//apps/api:format", "//apps/worker:format"], description = "Format all apps" } |
53 | | -"gen:api" = { depends = ["//apps/api:gen:openapi"], run = [{ tasks = ["//apps/mobile:gen:api"] }], description = "Generate OpenAPI schema and mobile API client" } |
54 | | -"i18n:build" = { depends = ["//packages/i18n:build"], description = "Build i18n files" } |
55 | | -"infra:down" = { depends = ["//apps/api:infra:down"], description = "Stop local infrastructure" } |
56 | | -"infra:up" = { depends = ["//apps/api:infra:up"], description = "Start local infrastructure" } |
57 | | -install = { depends = ["//apps/api:install", "//apps/worker:install", "//apps/mobile:install", "//packages/design-tokens:install", "//packages/i18n:install"], description = "Install all dependencies" } |
58 | | -lint = { depends = ["//apps/api:lint", "//apps/worker:lint"], description = "Lint all apps" } |
59 | | -test = { depends = ["//apps/api:test", "//apps/worker:test"], description = "Test all apps" } |
60 | | -"tokens:build" = { depends = ["//packages/design-tokens:build"], description = "Build design tokens" } |
61 | | -typecheck = { depends = ["//apps/api:typecheck"], description = "Type check all apps" } |
| 46 | +"db:migrate" = { run = [ |
| 47 | + { task = "infra:up" }, |
| 48 | + { task = "//apps/api:migrate" }, |
| 49 | +], description = "Run database migrations" } |
| 50 | +"dev:mobile" = { depends = [ |
| 51 | + "//apps/api:dev", |
| 52 | + "//apps/mobile:dev", |
| 53 | +], description = "Start API and Mobile services" } |
| 54 | +dev = { depends = [ |
| 55 | + "db:migrate", |
| 56 | +], run = [ |
| 57 | + { tasks = [ |
| 58 | + "//apps/api:dev", |
| 59 | + "//apps/worker:dev", |
| 60 | + "//apps/mobile:dev", |
| 61 | + ] }, |
| 62 | +], description = "Start all services" } |
| 63 | +format = { depends = [ |
| 64 | + "//apps/api:format", |
| 65 | + "//apps/worker:format", |
| 66 | +], description = "Format all apps" } |
| 67 | +"gen:api" = { depends = [ |
| 68 | + "//apps/api:gen:openapi", |
| 69 | +], run = [ |
| 70 | + { tasks = [ |
| 71 | + "//apps/mobile:gen:api", |
| 72 | + ] }, |
| 73 | +], description = "Generate OpenAPI schema and mobile API client" } |
| 74 | +"i18n:build" = { depends = [ |
| 75 | + "//packages/i18n:build", |
| 76 | +], description = "Build i18n files" } |
| 77 | +"infra:down" = { depends = [ |
| 78 | + "//apps/api:infra:down", |
| 79 | +], description = "Stop local infrastructure" } |
| 80 | +"infra:up" = { depends = [ |
| 81 | + "//apps/api:infra:up", |
| 82 | +], description = "Start local infrastructure" } |
| 83 | +install = { depends = [ |
| 84 | + "//apps/api:install", |
| 85 | + "//apps/worker:install", |
| 86 | + "//apps/mobile:install", |
| 87 | + "//packages/design-tokens:install", |
| 88 | + "//packages/i18n:install", |
| 89 | +], description = "Install all dependencies" } |
| 90 | +lint = { depends = [ |
| 91 | + "//apps/api:lint", |
| 92 | + "//apps/worker:lint", |
| 93 | +], description = "Lint all apps" } |
| 94 | +test = { depends = [ |
| 95 | + "//apps/api:test", |
| 96 | + "//apps/worker:test", |
| 97 | +], description = "Test all apps" } |
| 98 | +"tokens:build" = { depends = [ |
| 99 | + "//packages/design-tokens:build", |
| 100 | +], description = "Build design tokens" } |
| 101 | +typecheck = { depends = [ |
| 102 | + "//apps/api:typecheck", |
| 103 | +], description = "Type check all apps" } |
62 | 104 |
|
63 | 105 | [tasks."git:commit-msg"] |
64 | 106 | description = "Validate commit message using commitlint" |
|
0 commit comments