-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 1.52 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
43
44
{
"name": "apollo-server-gcp",
"version": "1.0.0",
"main": "index.js",
"author": "Vinícius Lourenço",
"license": "MIT",
"description": "Example project for @apollo/server and GCP",
"config": {
"gcp_project": "serverless-project",
"gcp_region": "us-central1",
"gcp_runtime": "nodejs16",
"gcp_entrypoint": "helloWorld"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "webpack -c webpack.config.mjs",
"start": "nodemon --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' src/run.ts",
"move-package": "cp package.json dist/package.json",
"upload-code": "gcloud functions deploy $npm_package_config_gcp_project --gen2 --region=$npm_package_config_gcp_region --runtime=$npm_package_config_gcp_runtime --source=dist --entry-point=$npm_package_config_gcp_entrypoint --trigger-http --allow-unauthenticated",
"deploy": "npm run build && npm run move-package && npm run upload-code"
},
"exports": "./index.js",
"dependencies": {
"@apollo/server": "4.2.1",
"@google-cloud/functions-framework": "^3.1.3",
"@h4ad/serverless-adapter": "^2.15.0",
"body-parser": "1.20.1",
"cors": "2.8.5"
},
"type": "module",
"devDependencies": {
"@types/body-parser": "1.19.2",
"@types/cors": "2.8.12",
"esbuild-loader": "^2.20.0",
"nodemon": "2.0.20",
"rimraf": "3.0.2",
"swc-loader": "0.2.3",
"ts-node": "10.9.1",
"typescript": "4.7.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0",
"webpack-node-externals": "^3.0.0"
}
}