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