This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 4.72 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "inreach-catalog-api",
"private": true,
"scripts": {
"cypress:open": "cypress open --config-file ./cypress.json",
"cypress:run": "nyc cypress run --config-file ./cypress.json",
"clean:reports": "rm -R -f ./mochawesome-report && rm -R -f ./.nyc_output && rm -R -f ./jestCoverage && rm -R -f ./coverageReports && rm -R -f ./cypressCoverage && rm -R -f ./reports",
"combine-reports": "mkdir ./reports && mochawesome-merge mochawesome-report/**/*.json > ./reports/reporte2e.json",
"generate-report": "marge ./reports/reporte2e.json -f e2e-report -o ./reports",
"post-e2e-test": "yarn combine-reports && yarn generate-report",
"show-coverage": "npx nyc report --reporter=text",
"pre-e2e-test": "yarn clean:reports && yarn dev-background && (wait-on http://localhost:8080 -l -v -t 30000 && exit 0)",
"pre-unit-test": "yarn clean:reports",
"combine:reports": "npx nyc merge coverageReports",
"report:combined": "npx nyc report --reporter lcov --reporter html --reporter json --report-dir coverageReports",
"combine:unit-e2e": "yarn copy:reports && yarn report:combined && yarn report:combined",
"unit-test": "jest",
"update-snapshot": "jest --updateSnapshot",
"e2e": "yarn cypress:run",
"e2eUI": "yarn cypress:open",
"dev": "nyc yarn start",
"dev-background": "(nyc yarn start&)",
"start": "backpack",
"build-and-serve": "yarn build && yarn serve",
"build": "backpack build",
"serve": "node ./build/main.js",
"lint": "eslint ./src/*.js",
"run-migration": "MIGRATION=true node migrations/$MIGRATION_FILE",
"rollback-migration": "ROLLBACK=true node migrations/$MIGRATION_FILE",
"register-migration": "node migrations/registerMigration.js",
"docker:compose-up": "cd docker && docker-compose up -d",
"docker:compose-down": "cd docker && docker-compose down",
"seed:organizations": "node ./docker/seed/generateOrgSeed.js",
"seed:users": "node ./docker/seed/generateUserSeed.js",
"seed:comments": "node ./docker/seed/generateCommentSeed.js",
"seed:reviews": "node ./docker/seed/generateReviewSeed.js",
"seed:ratings": "node ./docker/seed/generateRatingSeed.js",
"seed:suggestion": "node ./docker/seed/generateSuggestionSeed.js",
"seed:indexes": "node ./docker/seed/addIndexes.js",
"seed-docker-db": "yarn run-s seed:*",
"backup:prod-staging": "PROD_TO_STAGING=true node ./backup/runBackUp.js",
"backup:staging-local": "STAGING_TO_LOCAL=true node ./backup/runBackUp.js"
},
"dependencies": {
"@octokit/auth-token": "^2.5.0",
"@octokit/rest": "^18.12.0",
"axios": "^0.27.0",
"backpack-core": "^0.8.4",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"crypto": "^1.0.1",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"faker": "^5.5.3",
"googleapis": "^65.0.0",
"jest-junit": "^12.0.0",
"jsonwebtoken": "^8.5.1",
"mailgun-js": "^0.22.0",
"moment": "^2.29.1",
"mongodb": "^3.5.6",
"mongoose": "^5.9.10",
"morgan": "^1.10.0",
"node-mongotools": "^2.0.2",
"npm-run-all": "^4.1.5",
"regenerator-runtime": "^0.13.9",
"swagger-ui-express": "^4.1.4"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@cypress/code-coverage": "^3.10.0",
"@types/node": "^18.8.3",
"axios-mock-adapter": "^1.21.2",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.4.0",
"babel-plugin-istanbul": "^6.0.0",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"csv-writer": "^1.6.0",
"cypress": "^9.7.0",
"dotenv-webpack": "^1.7.0",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"intermock": "^0.2.5",
"jest": "^25.5.4",
"lint-staged": "^10.1.7",
"mochawesome": "^6.2.2",
"mochawesome-merge": "^4.2.0",
"nyc": "^15.1.0",
"p-queue": "^7.3.0",
"prettier": "^2.0.5",
"start-server-and-test": "^1.12.1",
"ts-node": "^10.9.1",
"tsconfig": "^7.0.0",
"typescript": "^4.8.4",
"wait-on": "^5.2.1"
},
"nyc": {
"sourceMap": false,
"instrument": false,
"excludeAfterRemap": false,
"all": true,
"include": [
"**/src/*"
],
"report-dir": "cypressCoverage",
"reporter": [
"html",
"json",
"lcov"
]
},
"engines": {
"node": "16"
},
"eslintConfig": {
"extends": "eslint:recommended",
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-console": 0,
"no-unused-vars": 1,
"no-mixed-spaces-and-tabs": 0
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,md}": [
"prettier --write",
"git add"
]
},
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"arrowParens": "always",
"jsxBracketSameLine:": true,
"tabWidth": 2,
"useTabs": true
}
}