-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
137 lines (137 loc) · 4.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "serverless-space",
"version": "1.1.0",
"description": "万能 BFF:这是我利用 AWS 免费资源构建一个 SFF 的实验场地,用于验证一些 Serverless 的想法。AWS 一共有 200 多个服务,目前这里使用的仅仅是一些 VPC 之外的服务。",
"main": "index.js",
"scripts": {
"prebuild": "rimraf dist",
"start": "node index.js",
"test": "mocha && jest",
"build": "nest build&&cp schema.gql dist/schema.gql&&cp src/babel-service/babel.min.js dist/babel-service/babel.min.js",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./e2e/jest-e2e.json --detectOpenHandles",
"offline": "yarn build && cross-env NODE_ENV=local serverless offline",
"deploy": "serverless deploy --verbose&&(./smoke || sh smoke.sh)",
"deploy-from-local": "AWS_SHARED_CREDENTIALS_FILE=~/.aws/config AWS_PROFILE=lambda-doc-rotary serverless deploy",
"pre-deploy": "cd layers/nodejs && npm i --omit=dev --legacy-peer-deps&&cd ../../gatsby-plugins/nodejs&&(npm i --omit=dev --legacy-peer-deps && npm v gatsby dist.tarball | xargs curl | tar -xz&&(mv package node_modules/gatsby || echo 'mv skipped'))",
"aws-console": "open https://console.aws.amazon.com/lambda/home?region=us-east-1#/functions",
"aws-console:windows": "start https://console.aws.amazon.com/lambda/home?region=us-east-1#/functions",
"studio:windows": "start https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/gatsby/graphql",
"ci-check": "yarn test&&yarn test:e2e&&yarn build",
"schema": "yarn offline",
"mocha": "mocha --timeout 10000"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Jeff-Tian/serverless-space.git"
},
"author": "Jeff Tian <jeff.tian@outlook.com>",
"license": "ISC",
"bugs": {
"url": "https://github.com/Jeff-Tian/serverless-space/issues"
},
"homepage": "https://github.com/Jeff-Tian/serverless-space#readme",
"dependencies": {
"@apollo/gateway": "2.5.1",
"@apollo/server": "^4.9.0",
"@apollo/subgraph": "2.5.1",
"@aws-sdk/client-dynamodb": "^3.421.0",
"@aws-sdk/client-sqs": "^3.421.0",
"@babel/core": "^7.22.9",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-react-jsx": "^7.22.5",
"@hapi/hoek": "^11.0.2",
"@hapi/joi": "15.1.1",
"@jeff-tian/gatsby-source-yuque": "3.0.3",
"@nestjs/apollo": "11.0.0",
"@nestjs/axios": "^3.0.0",
"@nestjs/common": "10.2.6",
"@nestjs/core": "10.2.6",
"@nestjs/devtools-integration": "^0.1.5",
"@nestjs/graphql": "11.0.0",
"@nestjs/platform-express": "10.2.6",
"@vendia/serverless-express": "4.10.4",
"apollo-server-cache-redis": "^3.2.0",
"apollo-server-express": "^3.5.0",
"axios": "^1.4.0",
"better-queue": "^3.8.12",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"configstore": "^6.0.0",
"dotenv": "^16.3.1",
"execa": "^7.2.0",
"express": "4.18.2",
"express-graphql": "0.12.0",
"extract-files": "^13.0.0",
"form-data": "^4.0.0",
"fs-extra": "^11.1.1",
"gatsby": "5.11.0",
"gatsby-source-filesystem": "^5.11.0",
"gatsby-source-graphql": "5.11.0",
"graphql": "^16.7.1",
"graphql-compose": "^9.0.10",
"graphql-query-complexity": "^0.12.0",
"graphql-subscriptions": "^2.0.0",
"graphql-tools": "9.0.0",
"hoek": "^6.1.3",
"ioredis": "^5.3.2",
"is-url": "^1.2.4",
"jest-diff": "^29.6.2",
"js-yaml": "^4.1.0",
"lock": "^1.1.0",
"mime": "3.0.0",
"mitt": "^3.0.1",
"prettier": "^3.0.0",
"ramda": "^0.29.0",
"react": "^18.2.0",
"react-reconciler": "^0.29.0",
"reflect-metadata": "^0.1.13",
"resolve-from": "^5.0.0",
"rxjs": "*",
"serverless-express": "2.0.12",
"single-trailing-newline": "^1.0.0",
"xstate": "^4.38.2"
},
"devDependencies": {
"@nestjs/cli": "10.1.18",
"@nestjs/testing": "10.2.6",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.72",
"@swc/jest": "^0.2.27",
"@types/jest": "^29.5.3",
"@types/supertest": "^2.0.12",
"cross-env": "^7.0.3",
"gatsby-recipes": "1.4.0",
"jest": "^29.6.2",
"mocha": "^10.2.0",
"nock": "^13.3.2",
"rimraf": "^5.0.1",
"serverless": "3.33.0",
"serverless-lift": "^1.28.0",
"serverless-offline": "12.0.4",
"serverless-plugin-layer-manager": "1.1.1",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-mockery": "^1.2.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}