forked from zitadel/zitadel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.json
More file actions
71 lines (71 loc) · 2.41 KB
/
project.json
File metadata and controls
71 lines (71 loc) · 2.41 KB
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
{
"$schema": "../node_modules/nx/schemas/project-schema.json",
"targets": {
"lint": {
"description": "Runs all linters",
"dependsOn": ["lint-check-*"]
},
"lint-check-prettier": {
"description": "Checks code formatting with Prettier",
"cache": true,
"inputs": ["default"]
},
"lint-check-ng": {
"description": "Runs Angular specific lint checks",
"cache": true,
"inputs": ["default"]
},
"generate": {
"description": "Generates code from protobuf definitions for API v1 endpoints",
"executor": "nx:run-commands",
"options": {
"command": "bash -c 'PATH=\"${PWD}/../.artifacts/bin/$(go env GOOS)/$(go env GOARCH):$PATH\" pnpm exec buf generate ../proto --include-imports --include-wkt'",
"cwd": "console"
},
"dependsOn": ["install-proto-plugins"],
"inputs": [
"{workspaceRoot}/proto/**/*",
"{projectRoot}/buf.gen.yaml",
"{projectRoot}/package.json",
"{workspaceRoot}/pnpm-lock.yaml",
{ "dependentTasksOutputFiles": ".artifacts/bin/*/*/protoc-gen-js" },
{ "dependentTasksOutputFiles": ".artifacts/bin/*/*/protoc-gen-grpc-web" },
{ "dependentTasksOutputFiles": ".artifacts/bin/*/*/protoc-gen-openapiv2" }
],
"outputs": ["{projectRoot}/src/app/proto/generated"]
},
"install-proto-plugins": {
"executor": "nx:run-commands",
"options": {
"command": "bash ./console/scripts/install-proto-plugins.sh"
},
"cache": true,
"inputs": [
{ "runtime": "uname -s" },
{ "runtime": "uname -m" },
"{projectRoot}/scripts/install-proto-plugins.sh"
],
"outputs": [
"{workspaceRoot}/.artifacts/bin/*/*/protoc-gen-grpc-web",
"{workspaceRoot}/.artifacts/bin/*/*/protoc-gen-js",
"{workspaceRoot}/.artifacts/bin/*/*/protoc-gen-openapiv2"
]
},
"build": {
"description": "Builds the Management Console for production",
"inputs": [
"{projectRoot}/**/*",
"!{projectRoot}/dist/**/*",
"!{projectRoot}/.angular/**/*",
"{workspaceRoot}/pnpm-lock.yaml",
"{workspaceRoot}/docs/frameworks.json"
],
"outputs": ["{projectRoot}/dist"]
},
"dev": {
"description": "Runs the Management Console in development mode with hot-reloading",
"continuous": true,
"dependsOn": ["generate", "^build"]
}
}
}