-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
42 lines (42 loc) · 1.68 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
40
41
42
{
"name": "upclick",
"version": "0.1.0",
"description": "A simple gcp pub/sub triggered function to target collect uptime metrics",
"main": "index.js",
"repository": "https://github.com/nellicus/upclick-clickhouse",
"author": "Antonio Bonuccelli",
"license": "MIT",
"config": {
"gcp_project": "support-services-377714",
"gcp_service_account": "[email protected]"
},
"engines": {
"node": ">=20.0.0"
},
"private": true,
"devDependencies": {
"@types/luxon": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.38.0",
"typescript": "^5.1.6"
},
"scripts": {
"build-local": "yarn clean && tsc",
"clean": "rm -rf dist/",
"deploy": "yarn build-local && yarn prep:dist && cd dist && gcloud functions deploy $npm_package_name --source=. --gen2 --trigger-topic=$npm_package_name-pubsub-topic --runtime=nodejs20 --memory=128MiB --entry-point=upclick --project $npm_package_config_gcp_project --service-account=$npm_package_config_gcp_service_account",
"prep:dist": "cp package.json dist/ && cp .env.local dist/.env",
"start:local": "yarn build-local && cp .env.local dist/.env && cp .env.local .env && functions-framework --source=dist/index.js --target=upclick ",
"undeploy": "gcloud functions delete $npm_package_name --project $npm_package_config_gcp_project"
},
"dependencies": {
"@google-cloud/functions": "^2.4.1",
"@google-cloud/functions-framework": "^3.2.0",
"@google/events": "^5.4.0",
"@maxmind/geoip2-node": "^4.1.0",
"axios": "^1.3.4",
"dotenv": "^16.3.1",
"joi": "^17.8.3",
"luxon": "^3.3.0"
}
}