|
1 | 1 | { |
2 | | - "name": "demo", |
3 | | - "$schema": "../../node_modules/nx/schemas/project-schema.json", |
4 | | - "projectType": "application", |
5 | | - "sourceRoot": "apps/demo/src", |
6 | | - "targets": { |
7 | | - "dev": { |
8 | | - "executor": "nx:run-commands", |
9 | | - "dependsOn": ["^build"], |
10 | | - "options": { |
11 | | - "command": "vite dev", |
12 | | - "cwd": "apps/demo" |
13 | | - } |
14 | | - }, |
15 | | - "dev:remote": { |
16 | | - "executor": "nx:run-commands", |
17 | | - "dependsOn": ["^build"], |
18 | | - "options": { |
19 | | - "command": "vite dev --host 0.0.0.0", |
20 | | - "cwd": "apps/demo" |
21 | | - } |
22 | | - }, |
23 | | - "build": { |
24 | | - "executor": "nx:run-commands", |
25 | | - "options": { |
26 | | - "command": "vite build", |
27 | | - "cwd": "apps/demo" |
28 | | - }, |
29 | | - "outputs": ["{projectRoot}/.svelte-kit"] |
30 | | - }, |
31 | | - "preview": { |
32 | | - "executor": "nx:run-commands", |
33 | | - "options": { |
34 | | - "command": "vite preview", |
35 | | - "cwd": "apps/demo" |
36 | | - }, |
37 | | - "dependsOn": ["build"] |
38 | | - }, |
39 | | - "sync-edge-deps": { |
40 | | - "executor": "nx:run-commands", |
41 | | - "dependsOn": ["core:build", "dsl:build"], |
42 | | - "options": { |
43 | | - "command": "./scripts/sync-edge-deps.sh", |
44 | | - "cwd": "apps/demo" |
45 | | - } |
46 | | - }, |
47 | | - "test": { |
48 | | - "executor": "nx:run-commands", |
49 | | - "options": { |
50 | | - "command": "deno test --allow-env --allow-net tests/", |
51 | | - "cwd": "apps/demo/supabase/functions/article_flow_worker" |
52 | | - } |
53 | | - }, |
54 | | - "ensure-ci-environment": { |
55 | | - "executor": "nx:run-commands", |
56 | | - "options": { |
57 | | - "command": "node -e \"if (!process.env.CI) throw new Error('This target must run in CI environment')\"" |
58 | | - } |
59 | | - }, |
60 | | - "deploy": { |
61 | | - "executor": "nx:run-commands", |
62 | | - "cache": false, |
63 | | - "local": true, |
64 | | - "dependsOn": ["build", "ensure-ci-environment"], |
65 | | - "inputs": ["{projectRoot}/wrangler.toml"], |
66 | | - "options": { |
67 | | - "cwd": "apps/demo", |
68 | | - "command": "wrangler deploy --env production" |
69 | | - } |
70 | | - }, |
71 | | - "deploy:preview": { |
72 | | - "executor": "nx:run-commands", |
73 | | - "cache": false, |
74 | | - "local": true, |
75 | | - "dependsOn": ["build"], |
76 | | - "inputs": ["{projectRoot}/wrangler.toml"], |
77 | | - "options": { |
78 | | - "cwd": "apps/demo", |
79 | | - "command": "./scripts/deploy-preview.sh ${PREVIEW_NAME:-pr-${PR_NUMBER:-preview}}" |
80 | | - } |
81 | | - } |
82 | | - } |
| 2 | + "name": "demo", |
| 3 | + "$schema": "../../node_modules/nx/schemas/project-schema.json", |
| 4 | + "projectType": "application", |
| 5 | + "sourceRoot": "apps/demo/src", |
| 6 | + "targets": { |
| 7 | + "dev": { |
| 8 | + "executor": "nx:run-commands", |
| 9 | + "dependsOn": ["^build"], |
| 10 | + "options": { |
| 11 | + "command": "vite dev", |
| 12 | + "cwd": "apps/demo" |
| 13 | + } |
| 14 | + }, |
| 15 | + "dev:remote": { |
| 16 | + "executor": "nx:run-commands", |
| 17 | + "dependsOn": ["^build"], |
| 18 | + "options": { |
| 19 | + "command": "vite dev --host 0.0.0.0", |
| 20 | + "cwd": "apps/demo" |
| 21 | + } |
| 22 | + }, |
| 23 | + "build": { |
| 24 | + "executor": "nx:run-commands", |
| 25 | + "options": { |
| 26 | + "command": "vite build", |
| 27 | + "cwd": "apps/demo" |
| 28 | + }, |
| 29 | + "outputs": ["{projectRoot}/.svelte-kit"] |
| 30 | + }, |
| 31 | + "preview": { |
| 32 | + "executor": "nx:run-commands", |
| 33 | + "options": { |
| 34 | + "command": "vite preview", |
| 35 | + "cwd": "apps/demo" |
| 36 | + }, |
| 37 | + "dependsOn": ["build"] |
| 38 | + }, |
| 39 | + "sync-edge-deps": { |
| 40 | + "executor": "nx:run-commands", |
| 41 | + "dependsOn": ["core:build", "dsl:build"], |
| 42 | + "options": { |
| 43 | + "command": "./scripts/sync-edge-deps.sh", |
| 44 | + "cwd": "apps/demo" |
| 45 | + } |
| 46 | + }, |
| 47 | + "test": { |
| 48 | + "executor": "nx:run-commands", |
| 49 | + "options": { |
| 50 | + "command": "deno test --allow-env --allow-net tests/", |
| 51 | + "cwd": "apps/demo/supabase/functions/article_flow_worker" |
| 52 | + } |
| 53 | + }, |
| 54 | + "ensure-ci-environment": { |
| 55 | + "executor": "nx:run-commands", |
| 56 | + "options": { |
| 57 | + "command": "node -e \"if (!process.env.CI) throw new Error('This target must run in CI environment')\"" |
| 58 | + } |
| 59 | + }, |
| 60 | + "deploy": { |
| 61 | + "executor": "nx:run-commands", |
| 62 | + "cache": false, |
| 63 | + "local": true, |
| 64 | + "dependsOn": ["build", "ensure-ci-environment"], |
| 65 | + "inputs": ["{projectRoot}/wrangler.toml"], |
| 66 | + "options": { |
| 67 | + "cwd": "apps/demo", |
| 68 | + "command": "wrangler deploy --env production" |
| 69 | + } |
| 70 | + }, |
| 71 | + "deploy:preview": { |
| 72 | + "executor": "nx:run-commands", |
| 73 | + "cache": false, |
| 74 | + "local": true, |
| 75 | + "dependsOn": ["build"], |
| 76 | + "inputs": ["{projectRoot}/wrangler.toml"], |
| 77 | + "options": { |
| 78 | + "cwd": "apps/demo", |
| 79 | + "command": "./scripts/deploy-preview.sh ${PREVIEW_NAME:-pr-${PR_NUMBER:-preview}}" |
| 80 | + } |
| 81 | + } |
| 82 | + } |
83 | 83 | } |
0 commit comments