Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Jan 1, 2022
1 parent 34d9549 commit 2f5e3fc
Show file tree
Hide file tree
Showing 7 changed files with 1,165 additions and 1,765 deletions.
6 changes: 3 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"endOfLine": "lf"
}
{
"endOfLine": "lf"
}
10 changes: 3 additions & 7 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/bitnami/node:14
FROM quay.io/bitnami/node:16-prod

EXPOSE 8090

Expand All @@ -16,16 +16,12 @@ RUN pnpm i

COPY prisma /home/gqty/prisma

RUN pnpm prisma generate
RUN pnpm prepare

COPY src /home/gqty/src

RUN pnpm prepare

COPY tsconfig.json /home/gqty/

RUN pnpm typecheck

ENV NODE_ENV=production

CMD node ./dist/index.js
CMD ["pnpm", "start"]
67 changes: 31 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,58 @@
"name": "example-api-sandbox",
"version": "1.0.0",
"private": true,
"homepage": "https://github.com/gqless/examples-api#readme",
"homepage": "https://github.com/gqty-dev/sandbox-examples-api#readme",
"bugs": {
"url": "https://github.com/gqless/examples-api/issues"
"url": "https://github.com/gqty-dev/sandbox-examples-api/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gqless/examples-api.git"
"url": "git+https://github.com/gqty-dev/sandbox-examples-api.git"
},
"license": "MIT",
"author": "PabloSz <pablosaez1995@gmail.com>",
"type": "module",
"main": "dist/index.js",
"main": "src/index.ts",
"scripts": {
"prepare": "prisma generate && bob-ts",
"build": "bob-ts",
"db:prepare": "prisma generate",
"dev": "bob-ts-watch -c \"node dist/index.js\"",
"start": "node dist/index.js",
"typecheck": "prisma generate && tsc",
"pretty": "prettier --write \"**/*.{ts,js,mjs,cjs}\""
"dev": "bob-tsm --node-env=dev --watch=src src/index.ts",
"prepare": "prisma generate",
"pretty": "prettier --write \"**/*.{ts,js,mjs,cjs}\"",
"start": "bob-tsm --node-env=prod src/index.ts",
"typecheck": "tsc"
},
"dependencies": {
"@graphql-ez/fastify": "^0.9.4",
"@graphql-ez/plugin-altair": "^0.9.1",
"@graphql-ez/plugin-codegen": "^0.7.3",
"@graphql-ez/plugin-modules": "^0.8.2",
"@graphql-ez/fastify": "^0.9.5",
"@graphql-ez/plugin-altair": "^0.9.7",
"@graphql-ez/plugin-codegen": "^0.7.7",
"@graphql-ez/plugin-modules": "^0.10.0",
"@graphql-ez/plugin-scalars": "^0.7.3",
"@graphql-ez/plugin-voyager": "^0.9.0",
"@graphql-ez/plugin-websockets": "^0.10.0",
"@prisma/client": "^3.0.2",
"date-fns": "^2.24.0",
"@graphql-ez/plugin-voyager": "^0.9.1",
"@graphql-ez/plugin-websockets": "^0.10.2",
"@prisma/client": "^3.7.0",
"date-fns": "^2.28.0",
"dotenv": "^10.0.0",
"faker": "^5.5.3",
"fastify": "^3.21.3",
"fastify-cors": "^6.0.2",
"graphql": "^15.6.0",
"graphql-ez": "^0.13.1",
"graphql-scalars": "^1.10.1",
"graphql-voyager": "^1.0.0-rc.31",
"fastify": "^3.25.3",
"graphql": "^16.2.0",
"graphql-ez": "^0.13.7",
"jsonwebtoken": "^8.5.1",
"lodash-es": "^4.17.21",
"ms": "^3.0.0-canary.1",
"node-json-db": "^1.4.0",
"node-schedule": "^2.0.0",
"ms": "^2.1.3",
"node-schedule": "^2.1.0",
"p-lazy": "^4.0.0",
"prisma": "^3.0.2"
"prisma": "^3.7.0"
},
"devDependencies": {
"@types/faker": "^5.5.8",
"@types/jsonwebtoken": "^8.5.5",
"@types/lodash": "^4.14.173",
"@types/faker": "^5.5.9",
"@types/jsonwebtoken": "^8.5.6",
"@types/lodash": "^4.14.178",
"@types/lodash-es": "^4.17.5",
"@types/ms": "^0.7.31",
"@types/node": "^16.9.4",
"@types/node": "^17.0.6",
"@types/node-schedule": "^1.3.2",
"bob-ts": "^1.1.0",
"esbuild": "^0.12.28",
"typescript": "^4.4.3"
"bob-tsm": "^0.4.4",
"esbuild": "^0.14.10",
"prettier": "^2.5.1",
"typescript": "^4.5.4"
}
}
Loading

0 comments on commit 2f5e3fc

Please sign in to comment.