-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
96 lines (96 loc) · 3.4 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
{
"name": "my-pets-api",
"version": "0.2.15",
"description": "GraphQL server based on NodeJs to give back-end support a web client based on React",
"author": "Nicolás Omar González Passerino",
"license": "MIT",
"private": false,
"homepage": "https://my-pets-api.up.railway.app",
"repository": {
"type": "git",
"url": "git+https://github.com/NicolasOmar/my-pets-api.git"
},
"bugs": {
"url": "https://github.com/NicolasOmar/my-pets-api/issues"
},
"scripts": {
"start": "npm run env:local -- nodemon --ext js,ts,gql --watch src --exec npm run server:local",
"start:ci": "npm run build && npm run move:files && npm run server",
"server": "node dist/index.js",
"server:local": "npm run build && npm run server",
"build": "npm run compile:ts && npm run compile:gql",
"compile:ts": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
"compile:gql": "graphql-codegen --config codegen.ts",
"move:files": "copyfiles -u 1 src/**/*.gql dist/",
"test": "npm run env:test -- jest --testPathPattern=src/ --runInBand",
"test:ci": "npm test -- --coverage",
"test:clear:cache": "npm test -- --clearCache",
"test:clean:dev": "npm run test:clear:cache && npm test",
"test:clean:ci": "npm run test:clear:cache && npm run test:ci",
"env:local": "env-cmd -f ./env/local.env",
"env:test": "env-cmd -f ./env/test.env",
"db:create": "npm run env:local -- babel-node scripts/generate-db.js",
"setup": "npm ci && husky install",
"lint": "eslint --max-warnings 0",
"prettier": "prettier src/**/*.{js,ts} --check",
"prettier:fix": "prettier src/**/*.{js,ts} --write",
"lint-staged": "lint-staged -v",
"update": "npm run update:deps && npm run update:doctor",
"update:deps": "ncu -i --format group",
"update:doctor": "npm run prettier && npm run lint && npm run build && npm run test:clean:ci"
},
"dependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.9",
"@babel/node": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.26.9",
"@babel/preset-env": "^7.26.9",
"apollo-server-errors": "^3.3.1",
"apollo-server-express": "^3.13.0",
"bcryptjs": "^3.0.0",
"crypto-js": "^4.2.0",
"express": "^4.21.2",
"graphql": "^16.10.0",
"hbs": "^4.2.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.10.1",
"validator": "^13.12.0"
},
"devDependencies": {
"@babel/register": "^7.25.9",
"@eslint/js": "^9.20.0",
"@graphql-codegen/cli": "^5.0.5",
"@graphql-codegen/typescript": "^4.1.3",
"@graphql-codegen/typescript-resolvers": "^4.4.2",
"@types/bcryptjs": "^2.4.6",
"@types/crypto-js": "^4.2.2",
"@types/graphql-depth-limit": "^1.1.6",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.8",
"@types/mongoose": "^5.11.97",
"@types/validator": "^13.12.2",
"babel-plugin-import-graphql": "^2.8.1",
"copyfiles": "^2.4.1",
"env-cmd": "^10.1.0",
"eslint": "^9.20.1",
"globals": "^15.15.0",
"graphql-depth-limit": "^1.1.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.4.3",
"nodemon": "^3.1.9",
"npm-check-updates": "^17.1.14",
"prettier": "^3.5.1",
"ts-jest": "^29.2.5",
"tsc-alias": "^1.8.10",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0"
},
"lint-staged": {
"src/**/*.(ts|js)": [
"prettier --write",
"eslint"
]
}
}