返回 AiToEarn
project.json
1 {
2 "name": "aitoearn-server",
3 "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 "sourceRoot": "apps/aitoearn-server/src",
5 "projectType": "application",
6 "tags": [],
7 "targets": {
8 "build": {
9 "executor": "@nx/js:tsc",
10 "outputs": ["{options.outputPath}"],
11 "options": {
12 "outputPath": "dist/apps/aitoearn-server",
13 "tsConfig": "apps/aitoearn-server/tsconfig.app.json",
14 "packageJson": "apps/aitoearn-server/package.json",
15 "main": "apps/aitoearn-server/src/main.ts",
16 "assets": [
17 "apps/aitoearn-server/*.md",
18 "apps/aitoearn-server/src/views/**/*",
19 "apps/aitoearn-server/src/public/**/*"
20 ],
21 "generatePackageJson": true,
22 "clean": true
23 }
24 },
25 "prune-lockfile": {
26 "dependsOn": ["build"],
27 "cache": true,
28 "executor": "@nx/js:prune-lockfile",
29 "outputs": [
30 "{workspaceRoot}/dist/apps/aitoearn-server/package.json",
31 "{workspaceRoot}/dist/apps/aitoearn-server/pnpm-lock.yaml"
32 ],
33 "options": {
34 "buildTarget": "build"
35 }
36 },
37 "serve": {
38 "continuous": true,
39 "executor": "@nx/js:node",
40 "defaultConfiguration": "local",
41 "dependsOn": ["build"],
42 "options": {
43 "buildTarget": "aitoearn-server:build",
44 "runBuildTargetDependencies": false
45 },
46 "configurations": {
47 "local": {
48 "buildTarget": "aitoearn-server:build:development",
49 "args": [
50 "-c",
51 "{workspaceRoot}/apps/aitoearn-server/config/local.config.yaml"
52 ]
53 },
54 "dev": {
55 "buildTarget": "aitoearn-server:build:development",
56 "args": [
57 "-c",
58 "{workspaceRoot}/apps/aitoearn-server/config/dev.config.yaml"
59 ]
60 },
61 "prod": {
62 "buildTarget": "aitoearn-server:build:production",
63 "args": [
64 "-c",
65 "{workspaceRoot}/apps/aitoearn-server/config/prod.config.yaml"
66 ]
67 }
68 }
69 },
70 "lint": {
71 "executor": "@nx/eslint:lint",
72 "outputs": ["{options.outputFile}"],
73 "options": {
74 "fix": true
75 }
76 },
77 "docker-context": {},
78 "docker-build": {}
79 }
80 }
81
81 lines JSON