-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
143 lines (143 loc) · 3.65 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
138
139
140
141
142
143
{
"name": "shorturl",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/shorturl/src",
"targets": {
"echo": {
"executor": "nx:run-commands",
"options": {
"command": "echo `date`"
}
},
"build": {
"executor": "@nrwl/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/shorturl",
"main": "apps/shorturl/src/main.ts",
"tsConfig": "apps/shorturl/tsconfig.app.json",
"target": "node",
"compiler": "tsc"
}
},
"build-sls": {
"executor": "@nrwl/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/shorturl",
"main": "apps/shorturl/src/lambda.ts",
"target": "node",
"compiler": "tsc",
"sourceMap": true,
"optimization": true,
"tsConfig": "apps/shorturl/tsconfig.app.json",
"progress": true,
"externalDependencies": [
"cache-manager",
"class-validator",
"class-transformer",
"@nestjs/websockets/socket-module",
"@nestjs/microservices",
"@nestjs/microservices/microservices-module"
]
}
},
"serve": {
"executor": "@nrwl/node:node",
"options": {
"buildTarget": "shorturl:build"
}
},
"deploy-sls": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/.serverless/shorturl"],
"options": {
"cwd": "apps/shorturl",
"command": "TS_NODE_PROJECT=./tsconfig.app.json sls deploy --stage={args.stage}",
"color": true,
"args": "--stage=sandbox"
},
"defaultConfiguration": "local",
"dependsOn": [
{
"projects": "self",
"target": "build-sls"
},
{
"projects": "dependencies",
"target": "deploy"
}
],
"configurations": {
"local": {
"args": "--stage=local"
},
"sandbox": {
"args": "--stage=sandbox"
},
"dev": {
"args": "--stage=dev"
},
"staging": {
"args": "--stage=staging"
},
"production": {
"args": "--stage=production"
}
}
},
"destroy-sls": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/.serverless/shorturl'"],
"defaultConfiguration": "local",
"options": {
"cwd": "apps/shorturl",
"command": "TS_NODE_PROJECT=./tsconfig.app.json sls remove --stage={args.stage}",
"color": true,
"args": "--stage=local"
},
"configurations": {
"local": {
"args": "--stage=local"
},
"sandbox": {
"args": "--stage=sandbox"
},
"dev": {
"args": "--stage=dev"
},
"staging": {
"args": "--stage=staging"
},
"production": {
"args": "--stage=production"
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/shorturl/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/shorturl"],
"options": {
"jestConfig": "apps/shorturl/jest.config.ts",
"passWithNoTests": true
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "master",
"preset": "conventional"
}
}
},
"tags": [],
"implicitDependencies": []
}