Skip to content

Commit 2f5e3fc

Browse files
committed
update
1 parent 34d9549 commit 2f5e3fc

File tree

7 files changed

+1165
-1765
lines changed

7 files changed

+1165
-1765
lines changed

.prettierrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{
2-
"endOfLine": "lf"
3-
}
1+
{
2+
"endOfLine": "lf"
3+
}

dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/bitnami/node:14
1+
FROM quay.io/bitnami/node:16-prod
22

33
EXPOSE 8090
44

@@ -16,16 +16,12 @@ RUN pnpm i
1616

1717
COPY prisma /home/gqty/prisma
1818

19-
RUN pnpm prisma generate
19+
RUN pnpm prepare
2020

2121
COPY src /home/gqty/src
2222

23-
RUN pnpm prepare
24-
2523
COPY tsconfig.json /home/gqty/
2624

2725
RUN pnpm typecheck
2826

29-
ENV NODE_ENV=production
30-
31-
CMD node ./dist/index.js
27+
CMD ["pnpm", "start"]

package.json

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,58 @@
22
"name": "example-api-sandbox",
33
"version": "1.0.0",
44
"private": true,
5-
"homepage": "https://github.com/gqless/examples-api#readme",
5+
"homepage": "https://github.com/gqty-dev/sandbox-examples-api#readme",
66
"bugs": {
7-
"url": "https://github.com/gqless/examples-api/issues"
7+
"url": "https://github.com/gqty-dev/sandbox-examples-api/issues"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/gqless/examples-api.git"
11+
"url": "git+https://github.com/gqty-dev/sandbox-examples-api.git"
1212
},
1313
"license": "MIT",
1414
"author": "PabloSz <[email protected]>",
1515
"type": "module",
16-
"main": "dist/index.js",
16+
"main": "src/index.ts",
1717
"scripts": {
18-
"prepare": "prisma generate && bob-ts",
19-
"build": "bob-ts",
20-
"db:prepare": "prisma generate",
21-
"dev": "bob-ts-watch -c \"node dist/index.js\"",
22-
"start": "node dist/index.js",
23-
"typecheck": "prisma generate && tsc",
24-
"pretty": "prettier --write \"**/*.{ts,js,mjs,cjs}\""
18+
"dev": "bob-tsm --node-env=dev --watch=src src/index.ts",
19+
"prepare": "prisma generate",
20+
"pretty": "prettier --write \"**/*.{ts,js,mjs,cjs}\"",
21+
"start": "bob-tsm --node-env=prod src/index.ts",
22+
"typecheck": "tsc"
2523
},
2624
"dependencies": {
27-
"@graphql-ez/fastify": "^0.9.4",
28-
"@graphql-ez/plugin-altair": "^0.9.1",
29-
"@graphql-ez/plugin-codegen": "^0.7.3",
30-
"@graphql-ez/plugin-modules": "^0.8.2",
25+
"@graphql-ez/fastify": "^0.9.5",
26+
"@graphql-ez/plugin-altair": "^0.9.7",
27+
"@graphql-ez/plugin-codegen": "^0.7.7",
28+
"@graphql-ez/plugin-modules": "^0.10.0",
3129
"@graphql-ez/plugin-scalars": "^0.7.3",
32-
"@graphql-ez/plugin-voyager": "^0.9.0",
33-
"@graphql-ez/plugin-websockets": "^0.10.0",
34-
"@prisma/client": "^3.0.2",
35-
"date-fns": "^2.24.0",
30+
"@graphql-ez/plugin-voyager": "^0.9.1",
31+
"@graphql-ez/plugin-websockets": "^0.10.2",
32+
"@prisma/client": "^3.7.0",
33+
"date-fns": "^2.28.0",
3634
"dotenv": "^10.0.0",
3735
"faker": "^5.5.3",
38-
"fastify": "^3.21.3",
39-
"fastify-cors": "^6.0.2",
40-
"graphql": "^15.6.0",
41-
"graphql-ez": "^0.13.1",
42-
"graphql-scalars": "^1.10.1",
43-
"graphql-voyager": "^1.0.0-rc.31",
36+
"fastify": "^3.25.3",
37+
"graphql": "^16.2.0",
38+
"graphql-ez": "^0.13.7",
4439
"jsonwebtoken": "^8.5.1",
4540
"lodash-es": "^4.17.21",
46-
"ms": "^3.0.0-canary.1",
47-
"node-json-db": "^1.4.0",
48-
"node-schedule": "^2.0.0",
41+
"ms": "^2.1.3",
42+
"node-schedule": "^2.1.0",
4943
"p-lazy": "^4.0.0",
50-
"prisma": "^3.0.2"
44+
"prisma": "^3.7.0"
5145
},
5246
"devDependencies": {
53-
"@types/faker": "^5.5.8",
54-
"@types/jsonwebtoken": "^8.5.5",
55-
"@types/lodash": "^4.14.173",
47+
"@types/faker": "^5.5.9",
48+
"@types/jsonwebtoken": "^8.5.6",
49+
"@types/lodash": "^4.14.178",
5650
"@types/lodash-es": "^4.17.5",
5751
"@types/ms": "^0.7.31",
58-
"@types/node": "^16.9.4",
52+
"@types/node": "^17.0.6",
5953
"@types/node-schedule": "^1.3.2",
60-
"bob-ts": "^1.1.0",
61-
"esbuild": "^0.12.28",
62-
"typescript": "^4.4.3"
54+
"bob-tsm": "^0.4.4",
55+
"esbuild": "^0.14.10",
56+
"prettier": "^2.5.1",
57+
"typescript": "^4.5.4"
6358
}
6459
}

0 commit comments

Comments
 (0)