-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
137 lines (137 loc) · 3.71 KB
/
project.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "fishing-map",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/fishing-map",
"projectType": "application",
"targets": {
"deploy": {
"executor": "nx:run-commands",
"options": {
"commands": ["nx prepare-loaders fishing-map", "nx build fishing-map --parallel"],
"parallel": false
}
},
"build:app": {
"executor": "@nx/next:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/fishing-map"
},
"configurations": {
"production": {}
}
},
"build": {
"executor": "nx:run-commands",
"options": {
"commands": [
"nx prepare-loaders fishing-map",
"nx clean-next fishing-map",
"nx build:app fishing-map"
],
"parallel": false
}
},
"start": {
"executor": "nx:run-commands",
"options": {
"commands": [
"nx clean-locales fishing-map",
"nx prepare-loaders fishing-map",
"nx serve i18n-labels",
"nx serve fishing-map --hostname=0.0.0.0"
],
"parallel": true
}
},
"prepare-loaders": {
"executor": "nx:run-commands",
"options": {
"commands": [
"nx dist:workers deck-loaders",
"make-dir apps/fishing-map/public/workers",
"shx cp -R dist/libs/deck-loaders/workers/**/*.js apps/fishing-map/public/workers/"
],
"parallel": false
}
},
"clean-locales": {
"executor": "nx:run-commands",
"outputs": [],
"options": {
"commands": ["rimraf dist/apps/fishing-map/public/locales"]
}
},
"clean-next": {
"executor": "nx:run-commands",
"outputs": [],
"options": {
"commands": ["rimraf dist/apps/fishing-map", "rimraf .next"]
}
},
"i18n": {
"executor": "nx:run-script",
"options": {
"script": "i18n:parser"
}
},
"prepare-serve": {
"executor": "nx:run-commands",
"options": {
"commands": [
"rimraf server",
"make-dir ./server && make-dir server/apps/fishing-map/public && make-dir server/dist/apps/fishing-map/.next/static",
"cp -rp ./dist/apps/fishing-map/public/* ./server/apps/fishing-map/public/",
"cp -rp ./dist/apps/fishing-map/.next/standalone/* ./server/",
"cp -rp ./dist/apps/fishing-map/.next/static/* ./server/dist/apps/fishing-map/.next/static/"
],
"parallel": false
}
},
"serve": {
"executor": "@nx/next:server",
"options": {
"buildTarget": "fishing-map:build",
"dev": true,
"port": 3003,
"turbo": true
},
"configurations": {
"production": {
"buildTarget": "fishing-map:build:production",
"dev": false
}
}
},
"serve:build": {
"executor": "nx:run-commands",
"options": {
"commands": ["node ./server/apps/fishing-map/server.js"],
"parallel": false
}
},
"prepare:build": {
"executor": "nx:run-commands",
"options": {
"commands": ["nx build fishing-map --parallel", "nx prepare-serve fishing-map"],
"parallel": false
}
},
"build-serve": {
"executor": "nx:run-commands",
"options": {
"commands": ["nx prepare:build fishing-map", "nx serve:build fishing-map"],
"parallel": false
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/fishing-map"],
"options": {
"jestConfig": "apps/fishing-map/jest.config.ts"
}
}
},
"tags": []
}