-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
39 lines (39 loc) · 1.72 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
38
39
{
"name": "cloud-function-typescript",
"version": "1.0.0",
"description": "Template project for Typescript and Google Cloud Functions",
"main": "index.js",
"scripts": {
"start": "cross-env dotenv_config_path=\"./.env\" node -r dotenv/config --inspect node_modules/@google-cloud/functions-framework --source=dist/index.js --port=8080 --target=exampleHttpFunction",
"deploy:http": "npm run build && gcloud functions deploy Function-Name --project=project-name --region=europe-west2 --trigger-http --entry-point=exampleHttpFunction --memory=256MB --runtime=nodejs16 --timeout=60s --source=./dist",
"deploy:pubsub": "npm run build && gcloud functions deploy Function-Name --project=project-name --region=europe-west2 --trigger-topic=pubsubTopicName --entry-point=exampleEventFunction --memory=256MB --runtime=nodejs16 --timeout=60s --source=./dist",
"build": "tsc",
"postbuild": "copyfiles package.json package-lock.json .gcloudignore ./dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wazbat/cloud-function-typescript.git"
},
"author": "Warren Edwards (warrenedwards97@gmail.com)",
"license": "ISC",
"bugs": {
"url": "https://github.com/wazbat/cloud-function-typescript/issues"
},
"homepage": "https://github.com/wazbat/cloud-function-typescript#readme",
"devDependencies": {
"@google-cloud/functions-framework": "^3.3.0",
"@types/express": "^4.17.13",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.7",
"@types/source-map-support": "^0.5.7",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"gts": "^5.0.1",
"jest": "^29.6.4",
"typescript": "^5.2.2"
},
"dependencies": {
"source-map-support": "^0.5.20"
}
}