generated from BloomTech-Labs/labs-api-node-starter
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathpackage.json
104 lines (104 loc) · 3.25 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
{
"name": "labs-api-starter",
"version": "1.0.0",
"private": false,
"license": "MIT",
"repository": "github:Lambda-School-Labs/labs-api-starter",
"scripts": {
"server": "nodemon server.js",
"start": "node server.js",
"migrate": "knex migrate:latest --knexfile config/knexfile.js",
"rollback": "knex migrate:rollback --knexfile config/knexfile.js",
"watch:dev": "nodemon",
"lint": "npx eslint .",
"lint:fix": "npx eslint --fix .",
"format": "npx prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|md)\"",
"knex": "npx knex --knexfile config/knexfile.js",
"tests": "cross-env NODE_ENV=test jest --verbose --runInBand",
"coverage": "CI=true npx jest --coverage --detectOpenHandles --forceExit",
"seed": "knex seed:run --knexfile config/knexfile.js",
"migrateh": "heroku run knex migrate:latest -a coder-heroes-api --knexfile config/knexfile.js",
"rollbackh": "heroku run knex migrate:rollback -a coder-heroes-api --knexfile config/knexfile.js",
"seedh": "heroku run knex seed:run -a coder-heroes-api --knexfile config/knexfile.js",
"databaseh": "heroku pg:psql -a coder-heroes-api --knexfile config/knexfile.js",
"deploy": "git push heroku main",
"update": "npx knex --knexfile config/knexfile.js migrate:rollback && npx knex --knexfile config/knexfile.js migrate:latest && npx knex --knexfile config/knexfile.js seed:run",
"updateh": "heroku run knex --knexfile config/knexfile.js migrate:rollback && npx knex --knexfile config/knexfile.js migrate:latest && npx knex --knexfile config/knexfile.js seed:run"
},
"lint-staged": {
"api/**/*.js": [
"eslint --fix",
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"testEnvironment": "node",
"testResultsProcessor": "jest-sonar-reporter",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/__tests__/",
"/vendor/",
"/coverage/"
],
"collectCoverageFrom": [
"**/*.js"
]
},
"nodemonConfig": {
"exec": "npm run start",
"watch": [
"api/*",
"public/*"
],
"ignore": [
"**/__tests__/**",
"*.test.js",
"*.spec.js"
]
},
"dependencies": {
"axios": "^0.21.1",
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"debug": "~2.6.9",
"dotenv": "^8.2.0",
"express": "~4.16.1",
"faker": "^4.1.0",
"helmet": "^3.23.1",
"http-errors": "~1.6.3",
"knex": "^0.21.1",
"knex-cleaner": "^1.3.1",
"moment": "^2.29.1",
"morgan": "~1.9.1",
"pg": "^8.2.1",
"stripe": "^8.203.0",
"swagger-jsdoc": "^6.0.1",
"swagger-ui-express": "^4.1.6",
"uuid": "^8.3.2",
"yup": "^0.32.11"
},
"devDependencies": {
"cross-env": "^7.0.2",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^4.3.0",
"jest": "^25.2.4",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^10.4.2",
"nodemon": "^2.0.4",
"prettier": "^2.0.5",
"supertest": "^4.0.2"
}
}