-
Notifications
You must be signed in to change notification settings - Fork 4
/
workspace.json
128 lines (128 loc) · 4.09 KB
/
workspace.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
{
"version": 1,
"projects": {
"user-service": {
"root": "services/user-service",
"projectType": "application",
"sourceRoot": "services/user-service/src",
"architect": {
"lint": {
"builder": "@nrwl/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"services/user-service/**/*.ts"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"outputs": [
"coverage/services/user-service"
],
"options": {
"jestConfig": "services/user-service/jest.config.js",
"codeCoverage": true,
"color": true,
"passWithNoTests": false
}
},
"build": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "sam build --template services/user-service/template.yaml --parameter-overrides EnvType={args.EnvType} --beta-features --build-dir=.aws-sam/build/user-service --debug"
}
],
"parallel": false
}
},
"deploy": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "sam deploy --template .aws-sam/build/user-service/template.yaml --stack-name {args.EnvType}-user-service --s3-prefix {args.EnvType}-user-service --s3-bucket <BUCKET_NAME> --region us-east-1 --capabilities CAPABILITY_IAM --no-fail-on-empty-changeset --parameter-overrides EnvType={args.EnvType}"
}
],
"parallel": false
}
},
"generate:event": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "sam local generate-event > services/user-service/event.json"
}
],
"parallel": false
}
},
"invoke:lambda": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "sam local invoke --template .aws-sam/build/user-service/template.yaml --event services/user-service/event.json --env-vars services/user-service/.env.json --debug"
}
],
"parallel": false
}
},
"invoke:api": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "sam local start-api --template .aws-sam/build/user-service/template.yaml --env-vars services/user-service/.env.json --port 3001 --debug"
}
],
"parallel": false
}
},
"remove": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/services/user-service",
"commands": [
{
"command": "nx g remove user-service"
},
{
"command": "sam delete --stack-name {args.EnvType}-user-service --s3-prefix {args.EnvType}-user-service --s3-bucket <BUCKET_NAME> --region us-east-1 --no-prompts --debug"
}
],
"parallel": false
}
}
}
}
}
}