-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.json
258 lines (258 loc) · 6.63 KB
/
tasks.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"tasks": {
"build": {
"name": "build",
"description": "Full release build",
"steps": [
{
"spawn": "default"
},
{
"spawn": "pre-compile"
},
{
"spawn": "compile"
},
{
"spawn": "post-compile"
},
{
"spawn": "test"
},
{
"spawn": "package"
}
]
},
"bundle": {
"name": "bundle",
"description": "Prepare assets"
},
"clobber": {
"name": "clobber",
"description": "hard resets to HEAD of origin and cleans the local repo",
"env": {
"BRANCH": "$(git branch --show-current)"
},
"steps": [
{
"exec": "git checkout -b scratch",
"name": "save current HEAD in \"scratch\" branch"
},
{
"exec": "git checkout $BRANCH"
},
{
"exec": "git fetch origin",
"name": "fetch latest changes from origin"
},
{
"exec": "git reset --hard origin/$BRANCH",
"name": "hard reset to origin commit"
},
{
"exec": "git clean -fdx",
"name": "clean all untracked files"
},
{
"say": "ready to rock! (unpushed commits are under the \"scratch\" branch)"
}
],
"condition": "git diff --exit-code > /dev/null"
},
"compile": {
"name": "compile",
"description": "Only compile"
},
"configLocal": {
"name": "configLocal",
"steps": [
{
"exec": "aws s3 cp s3://$(yarn run --silent getBucket)/config.json site/public/"
}
]
},
"default": {
"name": "default",
"description": "Synthesize project files",
"steps": [
{
"exec": "ts-node --project tsconfig.dev.json .projenrc.ts"
}
]
},
"deploy": {
"name": "deploy",
"description": "Deploys your CDK app to the AWS cloud",
"steps": [
{
"exec": "cdk deploy",
"receiveArgs": true
}
]
},
"destroy": {
"name": "destroy",
"description": "Destroys your cdk app in the AWS cloud",
"steps": [
{
"exec": "cdk destroy",
"receiveArgs": true
}
]
},
"diff": {
"name": "diff",
"description": "Diffs the currently deployed app against your code",
"steps": [
{
"exec": "cdk diff"
}
]
},
"eject": {
"name": "eject",
"description": "Remove projen from the project",
"env": {
"PROJEN_EJECTING": "true"
},
"steps": [
{
"spawn": "default"
}
]
},
"eslint": {
"name": "eslint",
"description": "Runs eslint against the codebase",
"steps": [
{
"exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern $@ src test build-tools projenrc .projenrc.ts",
"receiveArgs": true
}
]
},
"getBucket": {
"name": "getBucket",
"steps": [
{
"exec": "aws cloudformation describe-stacks --stack-name AmazonChimeSDKWithTranscribe --query 'Stacks[0].Outputs[?OutputKey==`siteBucket`].OutputValue' --output text"
}
]
},
"install": {
"name": "install",
"description": "Install project dependencies and update lockfile (non-frozen)",
"steps": [
{
"exec": "yarn install --check-files"
}
]
},
"install:ci": {
"name": "install:ci",
"description": "Install project dependencies using frozen lockfile",
"steps": [
{
"exec": "yarn install --check-files --frozen-lockfile"
}
]
},
"launch": {
"name": "launch",
"steps": [
{
"exec": "yarn && yarn projen && yarn build && yarn cdk bootstrap && yarn cdk deploy && yarn configLocal"
}
]
},
"package": {
"name": "package",
"description": "Creates the distribution package"
},
"post-compile": {
"name": "post-compile",
"description": "Runs after successful compilation",
"steps": [
{
"spawn": "synth:silent"
}
]
},
"post-upgrade": {
"name": "post-upgrade",
"description": "Runs after upgrading dependencies"
},
"pre-compile": {
"name": "pre-compile",
"description": "Prepare the project for compilation"
},
"synth": {
"name": "synth",
"description": "Synthesizes your cdk app into cdk.out",
"steps": [
{
"exec": "cdk synth"
}
]
},
"synth:silent": {
"name": "synth:silent",
"description": "Synthesizes your cdk app into cdk.out and suppresses the template in stdout (part of \"yarn build\")",
"steps": [
{
"exec": "cdk synth -q"
}
]
},
"test": {
"name": "test",
"description": "Run tests",
"steps": [
{
"spawn": "eslint"
}
]
},
"upgrade": {
"name": "upgrade",
"description": "upgrade dependencies",
"env": {
"CI": "0"
},
"steps": [
{
"exec": "npx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=esbuild,eslint-import-resolver-typescript,eslint-plugin-import,projen,ts-node,typescript,@aws-sdk/client-chime-sdk-media-pipelines,@aws-sdk/client-chime-sdk-meetings,@aws-sdk/client-dynamodb,@aws-sdk/lib-dynamodb,@types/aws-lambda,@types/fs-extra,aws-lambda,fs-extra"
},
{
"exec": "yarn install --check-files"
},
{
"exec": "yarn upgrade @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser aws-cdk esbuild eslint-import-resolver-typescript eslint-plugin-import eslint projen ts-node typescript @aws-sdk/client-chime-sdk-media-pipelines @aws-sdk/client-chime-sdk-meetings @aws-sdk/client-dynamodb @aws-sdk/lib-dynamodb @types/aws-lambda @types/fs-extra aws-cdk-lib aws-lambda constructs fs-extra"
},
{
"exec": "npx projen"
},
{
"spawn": "post-upgrade"
}
]
},
"watch": {
"name": "watch",
"description": "Watches changes in your source code and rebuilds and deploys to the current account",
"steps": [
{
"exec": "cdk deploy --hotswap"
},
{
"exec": "cdk watch"
}
]
}
},
"env": {
"PATH": "$(npx -c \"node --print process.env.PATH\")"
},
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}