|
| 1 | +{ |
| 2 | + "name": "hackathon-phi", |
| 3 | + "$schema": "../../node_modules/nx/schemas/project-schema.json", |
| 4 | + "sourceRoot": "apps/hackathon-phi", |
| 5 | + "projectType": "application", |
| 6 | + "tags": ["scope:react-next"], |
| 7 | + "generators": {}, |
| 8 | + "targets": { |
| 9 | + "build": { |
| 10 | + "executor": "@nx/next:build", |
| 11 | + "outputs": ["{options.outputPath}"], |
| 12 | + "defaultConfiguration": "production", |
| 13 | + "options": { |
| 14 | + "outputPath": "dist/apps/hackathon-phi" |
| 15 | + }, |
| 16 | + "configurations": { |
| 17 | + "development": { |
| 18 | + "outputPath": "apps/hackathon-phi" |
| 19 | + }, |
| 20 | + "production": {} |
| 21 | + }, |
| 22 | + "dependsOn": ["build-custom-server"] |
| 23 | + }, |
| 24 | + "build-custom-server": { |
| 25 | + "executor": "@nx/webpack:webpack", |
| 26 | + "defaultConfiguration": "production", |
| 27 | + "options": { |
| 28 | + "outputPath": "dist/apps/hackathon-phi", |
| 29 | + "main": "apps/hackathon-phi/server.ts", |
| 30 | + "tsConfig": "apps/hackathon-phi/tsconfig.server.json", |
| 31 | + "maxWorkers": 2, |
| 32 | + "assets": [], |
| 33 | + "compiler": "tsc", |
| 34 | + "target": "node", |
| 35 | + "webpackConfig": "apps/hackathon-phi/webpack.config.js" |
| 36 | + }, |
| 37 | + "configurations": { |
| 38 | + "development": {}, |
| 39 | + "production": { |
| 40 | + "optimization": true, |
| 41 | + "extractLicenses": true, |
| 42 | + "inspect": false |
| 43 | + } |
| 44 | + } |
| 45 | + }, |
| 46 | + "serve": { |
| 47 | + "executor": "@nx/next:server", |
| 48 | + "defaultConfiguration": "development", |
| 49 | + "options": { |
| 50 | + "buildTarget": "hackathon-phi:build", |
| 51 | + "dev": true, |
| 52 | + "customServerTarget": "hackathon-phi:serve-custom-server" |
| 53 | + }, |
| 54 | + "configurations": { |
| 55 | + "development": { |
| 56 | + "buildTarget": "hackathon-phi:build:development", |
| 57 | + "dev": true, |
| 58 | + "customServerTarget": "hackathon-phi:serve-custom-server:development" |
| 59 | + }, |
| 60 | + "production": { |
| 61 | + "buildTarget": "hackathon-phi:build:production", |
| 62 | + "dev": false, |
| 63 | + "customServerTarget": "hackathon-phi:serve-custom-server:production" |
| 64 | + } |
| 65 | + } |
| 66 | + }, |
| 67 | + "serve-custom-server": { |
| 68 | + "executor": "@nx/js:node", |
| 69 | + "defaultConfiguration": "development", |
| 70 | + "options": { |
| 71 | + "buildTarget": "hackathon-phi:build-custom-server" |
| 72 | + }, |
| 73 | + "configurations": { |
| 74 | + "development": { |
| 75 | + "buildTarget": "hackathon-phi:build-custom-server:development" |
| 76 | + }, |
| 77 | + "production": { |
| 78 | + "buildTarget": "hackathon-phi:build-custom-server:production" |
| 79 | + } |
| 80 | + } |
| 81 | + }, |
| 82 | + "export": { |
| 83 | + "executor": "@nx/next:export", |
| 84 | + "options": { |
| 85 | + "buildTarget": "hackathon-phi:build:production" |
| 86 | + } |
| 87 | + }, |
| 88 | + "lint": { |
| 89 | + "executor": "@nx/eslint:lint" |
| 90 | + }, |
| 91 | + "test": { |
| 92 | + "executor": "@nx/jest:jest", |
| 93 | + "options": { |
| 94 | + "jestConfig": "apps/hackathon-phi/jest.config.ts" |
| 95 | + }, |
| 96 | + "outputs": ["{workspaceRoot}/coverage/apps/hackathon-phi"] |
| 97 | + }, |
| 98 | + "extract-strings": { |
| 99 | + "executor": "nx:run-commands", |
| 100 | + "options": { |
| 101 | + "command": "yarn ts-node -P libs/localization/tsconfig.lib.json libs/localization/scripts/extract 'apps/hackathon-phi/{screens,pages,components}/*.{js,ts,tsx}'" |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | +} |
0 commit comments