-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
89 lines (89 loc) · 2.9 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
{
"name": "my-pets-api",
"version": "0.2.13",
"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,gql --watch src --exec npm run server",
"server": "babel-node src/index.js",
"build": "babel ./src/index.js -d ./build ./src --copy-files",
"start:ci": "npm run build && node ./build/index.js",
"test": "env-cmd -f ./env/test.env jest --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",
"db:create": "npm run env:local -- babel-node scripts/generate-db.js",
"setup": "npm i && npm i -g npm-check-updates && husky install",
"lint": "eslint src --max-warnings 0",
"prettier": "prettier src/**/*.js --check",
"prettier:fix": "prettier src/**/*.js --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.25.9",
"@babel/core": "^7.26.0",
"@babel/node": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"apollo-server-errors": "^3.3.1",
"apollo-server-express": "^3.13.0",
"babel-plugin-import-graphql": "^2.8.1",
"bcryptjs": "^2.4.3",
"crypto-js": "^4.2.0",
"express": "^4.21.1",
"graphql": "^16.9.0",
"hbs": "^4.2.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.8.1",
"validator": "^13.12.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.25.9",
"@babel/register": "^7.25.9",
"@eslint/compat": "^1.2.2",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.14.0",
"env-cmd": "^10.1.0",
"eslint": "^9.14.0",
"eslint-plugin-node": "^11.1.0",
"graphql-depth-limit": "^1.1.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"nodemon": "^3.1.7",
"prettier": "^3.3.3"
},
"engines": {
"node": ">=12.9.0"
},
"jest": {
"verbose": true,
"testEnvironment": "node",
"globalSetup": "./scripts/init-tests.js",
"globalTeardown": "./scripts/close-tests.js",
"collectCoverageFrom": [
"src/**/!(*model|*mocks).js"
]
},
"lint-staged": {
"src/**/*.js": [
"prettier --write",
"eslint"
]
}
}