|
2 | 2 | "name": "website", |
3 | 3 | "$schema": "../../node_modules/nx/schemas/project-schema.json", |
4 | 4 | "projectType": "application", |
5 | | - "sourceRoot": "packages/website/src", |
| 5 | + "sourceRoot": "apps/website/src", |
6 | 6 | "targets": { |
7 | 7 | "build": { |
8 | 8 | "executor": "qwik-nx:build", |
9 | 9 | "options": { |
10 | 10 | "runSequence": ["website:build.client", "website:build.ssr"], |
11 | | - "outputPath": "dist/packages/website" |
| 11 | + "outputPath": "dist/apps/website" |
12 | 12 | }, |
13 | 13 | "configurations": { |
14 | | - "preview": {} |
15 | | - } |
16 | | - }, |
17 | | - "build.client": { |
18 | | - "executor": "@nrwl/vite:build", |
19 | | - "options": { |
20 | | - "outputPath": "dist/packages/website", |
21 | | - "configFile": "apps/website/vite.config.ts" |
22 | | - } |
23 | | - }, |
24 | | - "build.ssr": { |
25 | | - "executor": "@nrwl/vite:build", |
26 | | - "defaultConfiguration": "preview", |
27 | | - "options": { |
28 | | - "outputPath": "dist/packages/website" |
29 | | - }, |
30 | | - "configurations": { |
31 | | - "preview": { |
32 | | - "ssr": "src/entry.preview.tsx", |
33 | | - "mode": "production" |
34 | | - } |
| 14 | + "preview": {}, |
| 15 | + "production": {} |
35 | 16 | } |
36 | 17 | }, |
37 | 18 | "preview": { |
38 | | - "executor": "@nrwl/vite:preview-server", |
| 19 | + "executor": "@nx/vite:preview-server", |
39 | 20 | "options": { |
40 | 21 | "buildTarget": "website:build" |
41 | 22 | } |
42 | 23 | }, |
43 | 24 | "test": { |
44 | | - "executor": "@nrwl/vite:test", |
45 | | - "outputs": ["../../coverage/packages/website"], |
| 25 | + "executor": "@nx/vite:test", |
| 26 | + "outputs": ["../../coverage/apps/website"], |
46 | 27 | "options": { |
47 | 28 | "passWithNoTests": true, |
48 | | - "reportsDirectory": "../../coverage/packages/website" |
| 29 | + "reportsDirectory": "../../coverage/apps/website" |
49 | 30 | } |
50 | 31 | }, |
51 | 32 | "serve": { |
52 | | - "executor": "@nrwl/vite:dev-server", |
| 33 | + "executor": "@nx/vite:dev-server", |
53 | 34 | "options": { |
54 | 35 | "buildTarget": "website:build.client", |
55 | 36 | "mode": "ssr" |
56 | 37 | } |
57 | 38 | }, |
58 | | - "serve.debug": { |
59 | | - "executor": "nx:run-commands", |
| 39 | + "build.client": { |
| 40 | + "executor": "@nx/vite:build", |
60 | 41 | "options": { |
61 | | - "command": "node --inspect-brk ../../node_modules/vite/bin/vite.js --mode ssr --force", |
62 | | - "cwd": "packages/website" |
| 42 | + "outputPath": "dist/apps/website", |
| 43 | + "configFile": "apps/website/vite.config.ts" |
63 | 44 | } |
64 | 45 | }, |
65 | | - "lint": { |
66 | | - "executor": "@nrwl/linter:eslint", |
67 | | - "outputs": ["{options.outputFile}"], |
| 46 | + "build.ssr": { |
| 47 | + "executor": "@nx/vite:build", |
| 48 | + "defaultConfiguration": "preview", |
| 49 | + "options": { |
| 50 | + "outputPath": "dist/apps/website" |
| 51 | + }, |
| 52 | + "configurations": { |
| 53 | + "preview": { |
| 54 | + "ssr": "src/entry.preview.tsx", |
| 55 | + "mode": "production" |
| 56 | + }, |
| 57 | + "production": { |
| 58 | + "configFile": "apps/website/adapters/cloudflare-pages/vite.config.ts" |
| 59 | + } |
| 60 | + }, |
| 61 | + "dependsOn": [] |
| 62 | + }, |
| 63 | + "serve.debug": { |
| 64 | + "executor": "nx:run-commands", |
68 | 65 | "options": { |
69 | | - "lintFilePatterns": ["packages/website/**/*.{ts,tsx,js,jsx}"] |
| 66 | + "command": "node --inspect-brk ../..//node_modules/vite/bin/vite.js --mode ssr --force", |
| 67 | + "cwd": "apps/website" |
70 | 68 | } |
71 | 69 | }, |
72 | 70 | "deploy": { |
|
0 commit comments