forked from GoogleCloudPlatform/community
/
package.json
37 lines (37 loc) · 1.13 KB
/
package.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
{
"name": "function-starter",
"version": "1.0.0",
"description": "Boilerplate for TS cloud functions",
"main": "index.js",
"author": "Preston Holmes <preston@ptone.com>",
"license": "Apache-2.0",
"dependencies": {
"@google-cloud/functions-framework": "^1.1.0",
"@types/redis": "^3.1.1",
"@types/redis-rate-limiter": "^1.2.1",
"good-env": "^4.0.0",
"redis": "^3.1.1",
"redis-rate-limiter": "^1.2.0"
},
"devDependencies": {
"@types/express": "^4.16.1",
"@types/node": "^11.13.6",
"express": "^4.16.4",
"gts": "^0.9.0",
"ts-node": "^8.1.0",
"tsc-watch": "^2.1.2",
"typescript": "^3.4.4"
},
"scripts": {
"check": "gts check",
"clean": "gts clean",
"compile": "yarn tsc -p .",
"develop": "yarn tsc-watch --onSuccess 'yarn start'",
"fix": "gts fix",
"prepare": "yarn run compile",
"pretest": "yarn run compile",
"posttest": "yarn run check",
"deploy": "yarn run compile && gcloud functions deploy --runtime nodejs10 --trigger-http --source ./build ${FUNCTION_TARGET}",
"start": "cd build;functions-framework --target ${FUNCTION_TARGET};cd .."
}
}