-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
39 lines (39 loc) · 1.21 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": "apollo-graphql-serverless",
"description": "Sample Apollo GraphQL Serverless App",
"version": "0.0.2",
"private": true,
"main": "graphqlServer.js",
"type": "module",
"author": "javatask",
"dependencies": {
"@apollo/server": "^4.4.1",
"@as-integrations/aws-lambda": "^2.0.1",
"graphql-tag": "^2.12.6",
"esbuild": "0.17.11"
},
"devDependencies": {
"jest": "^29.4.3"
},
"scripts": {
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"local-run": "npm run build && sam local invoke --event ./events/graphql-post.json --env-vars env.json GraphqlServerFunction",
"local-api": "npm run build && sam local start-api --env-vars env.json",
"build": "sam build",
"deploy": "sam deploy --guided",
"build-deploy": "npm run build && npm run deploy",
"cloud-watch": "sam sync --stack-name graphql-serverless --watch",
"cloud-logs": "sam logs -n GraphqlServerFunction --stack-name graphql-serverless"
},
"jest": {
"testMatch": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)",
"**/__tests__/**/*.mjs?(x)",
"**/?(*.)+(spec|test).mjs?(x)"
],
"moduleFileExtensions": [
"js"
]
}
}