-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
118 lines (118 loc) · 3.37 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
{
"name": "express-crud",
"version": "1.0.0",
"main": "server.js",
"scripts": {
"start": "cross-env NODE_ENV=production node server.js",
"dev": "cross-env NODE_ENV=development nodemon server.js",
"test": "cross-env NODE_ENV=test jest --verbose",
"test:unit": "jest --config jest.config.js --testPathPattern=src/tests/unit --passWithNoTests",
"test:integration": "jest --config jest.config.js --testPathPattern=src/tests/integration --passWithNoTests",
"test:ui": "cypress run --reporter mochawesome --reporter-options reportDir=cypress/reports,overwrite=false,html=true,json=true",
"test:performance": "jmeter -n -t src/tests/performance/productPerformanceTest.jmx -l testResults.jtl -e -o report",
"test:all": "npm run test:unit && npm run test:integration && npm run test:performance",
"test:e2e": "npm run test:ui",
"test:selenium": "npm run selenium-test",
"selenium-test": "node src/tests/e2e/seleniumTest.js",
"generate-prisma": "prisma generate",
"migrate": "prisma migrate dev --name init",
"deploy": "npm run generate-prisma && npm start",
"lint": "eslint . --max-warnings=0",
"format": "prettier --write \"src/**/*.js\"",
"prepare": "husky install",
"ci": "npm run lint && npm run test:all && npm run deploy || echo 'Tests failed. Not deploying.'"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "Aplicación CRUD utilizando Express, Prisma y motor de plantillas",
"dependencies": {
"@octokit/rest": "^21.0.2",
"@prisma/client": "^5.20.0",
"axios": "^1.7.7",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
"express": "^4.21.0",
"express-crud": "file:",
"method-override": "^3.0.0",
"nodemailer": "^6.9.15"
},
"devDependencies": {
"@types/jest": "^29.5.13",
"@types/node": "^22.7.4",
"cypress": "^13.15.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-import": "^2.30.0",
"husky": "^8.0.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "^14.0.0",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.3.0",
"mochawesome-report-generator": "^6.2.0",
"nodemon": "^3.1.7",
"prettier": "^3.0.0",
"prisma": "^5.20.0",
"selenium-webdriver": "^4.25.0",
"start-server-and-test": "^2.0.8",
"supertest": "^7.0.0",
"wait-on": "^8.0.1"
},
"eslintConfig": {
"env": {
"es2024": true,
"node": true,
"jest": true,
"cypress/globals": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:cypress/recommended",
"prettier"
],
"plugins": [
"cypress"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "warn",
"no-undef": "warn"
}
},
"prettier": {
"singleQuote": true,
"semi": false
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write"
]
},
"jest": {
"testEnvironment": "node",
"moduleFileExtensions": [
"js",
"json"
],
"testMatch": [
"**/src/tests/**/*.test.js"
],
"collectCoverage": true,
"coverageDirectory": "./coverage",
"coverageReporters": [
"json",
"lcov",
"text",
"clover"
]
}
}