This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
242 lines (242 loc) · 7.99 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{
"name": "boldr-api",
"version": "0.1.0",
"description": "API server and database for Boldr CMS",
"main": "index.js",
"license": "MIT",
"author": "Steven Truesdell <[email protected]>",
"repository": {
"type": "git",
"url": "git+https://github.com/boldr/boldr-api.git"
},
"bugs": "https://github.com/boldr/boldr-api/issues",
"homepage": "https://github.com/boldr/boldr-api#readme",
"scripts": {
"api": "apidoc -i src -o static/apidocs",
"apidoc": "apidoc-markdown2 -p static/apidocs -o docs/apidoc.md",
"build": "NODE_ENV=production babel --ignore=src/**/*.spec.js src --out-dir lib",
"build:test": "echo \"nothing\" && exit 0",
"changelog": "conventional-changelog -p atom -i CHANGELOG.md",
"clean": "rimraf lib && rimraf boldrAPI",
"clean:lib": "rimraf lib",
"clean:apidoc": "rimraf static/apidocs",
"dev": "better-npm-run dev",
"docker": "cd boldrAPI; docker build -t strues/boldr-api .",
"format": "prettier --single-quote=true --jsx-bracket-same-line=false --trailing-comma=all --write \"src/**/*.js\"",
"lint": "eslint src db internal",
"knex": "./node_modules/.bin/knex",
"migrate": "better-npm-run migrate",
"reset": "better-npm-run reset",
"migrate:test": "better-npm-run migrate:test",
"migration": "better-npm-run migration",
"pkg": "npm run clean && npm run build && npm run pkg:dirs && npm run pkg:files && npm run clean:lib",
"pkg:dirs": "mkdir boldrAPI && cp -a lib boldrAPI && cp -a db ./boldrAPI/ && cp -a static ./boldrAPI/",
"pkg:files": "cp knexfile.js .boldrrc Procfile yarn.lock package.json boldrAPI/ && cp internal/docker/Dockerfile boldrAPI/ && cp internal/docker/docker-compose.prod.yml boldrAPI/docker-compose.yml",
"pm2:stop": "pm2 delete all || true",
"precommit": "lint-staged",
"prepush": "npm run test",
"run:prod-cluster": "pm2 flush && yarn pm2:stop && pm2 flush && PM2_MODE=prod-cluster pm2 start internal/pm2.config.js && clear && pm2 list && pm2 logs --lines 1000",
"run:prod": "pm2 flush && yarn pm2:stop && PM2_MODE=prod pm2 start internal/pm2.config.js && clear && pm2 list && pm2 logs --lines 1000",
"start": "NODE_ENV=production node lib/index.js",
"seed": "better-npm-run seed",
"seed:test": "better-npm-run seed:test",
"test": "better-npm-run test",
"test:ci": "better-npm-run test:ci"
},
"lint-staged": {
"src/**/*.js": [
"prettier --single-quote=true --jsx-bracket-same-line=false --trailing-comma=all --write \"src/**/*.js\"",
"git add"
]
},
"dependencies": {
"app-root-dir": "^1.0.2",
"bcrypt": "^1.0.2",
"better-npm-run": "^0.0.15",
"bluebird": "^3.5.0",
"body-parser": "^1.17.1",
"boldr-config": "^0.1.4",
"boldr-utils": "0.2.2",
"chalk": "^1.1.3",
"compression": "^1.6.2",
"connect-redis": "^3.3.0",
"cookie-parser": "^1.4.3",
"cors": "^2.8.3",
"debug": "^2.6.6",
"dotenv": "4.0.0",
"express": "4.15.2",
"express-flash": "^0.0.2",
"express-redis-cache": "^0.5.1",
"express-session": "^1.15.2",
"express-validator": "^3.2.0",
"express-winston": "^2.4.0",
"formidable": "^1.1.1",
"fs-extra": "3.0.1",
"helmet": "3.6.0",
"hpp": "^0.2.2",
"ioredis": "^2.5.0",
"jsonwebtoken": "^7.4.0",
"knex": "0.13.0",
"lodash": "^4.17.4",
"method-override": "^2.3.8",
"morgan": "^1.8.1",
"nodemailer": "^4.0.1",
"objection": "0.7.12",
"objection-find": "^0.4.0",
"objection-softdelete": "^1.0.1",
"pg": "^6.1.5",
"request": "^2.81.0",
"response-time": "^2.3.2",
"sharp": "^0.17.3",
"shortid": "^2.2.8",
"source-map-support": "^0.4.15",
"uuid": "^3.0.1",
"winston": "^2.3.1",
"winston-daily-rotate-file": "^1.4.6"
},
"devDependencies": {
"apidoc": "^0.17.5",
"apidoc-markdown2": "^0.3.2",
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-jest": "^19.0.0",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.4.0",
"chokidar": "^1.6.1",
"cross-env": "^4.0.0",
"cz-conventional-changelog-emoji": "^0.1.0",
"cz-conventional-kawaii": "^0.1.4",
"eslint": "^3.19.0",
"eslint-config-boldr": "^0.9.3",
"faker": "^4.1.0",
"fast-async": "^6.2.2",
"flow-bin": "0.45.0",
"husky": "^0.13.3",
"jest": "^19.0.2",
"lint-staged": "^3.4.1",
"nodemon": "^1.11.0",
"prettier-eslint-cli": "^3.4.2",
"rimraf": "^2.6.1",
"supertest": "^3.0.0"
},
"keywords": [
"boldr",
"api",
"express",
"rest",
"nodejs"
],
"betterScripts": {
"dev": {
"command": "cross-env nodemon --exec babel-node --trace-warnings ./src/index.js",
"env": {
"NODE_ENV": "development",
"BOLDR__DB__URL": "postgres://postgres:[email protected]:5432/boldr",
"BOLDR__REDIS__URL": "redis://0.0.0.0:6379/0",
"DATABASE_DEBUG": true,
"DEBUG": "boldrAPI:*"
}
},
"migrate": {
"command": "cross-env node --harmony internal/scripts/db.js migrate",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr",
"NODE_ENV": "development"
}
},
"migrate:test": {
"command": "cross-env node --harmony internal/scripts/db.js migrate",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr_test",
"NODE_ENV": "development"
}
},
"migration": {
"command": "cross-env node --harmony internal/scripts/db.js migration",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr",
"NODE_ENV": "development"
}
},
"reset": {
"command": "cross-env node --harmony internal/scripts/db.js reset",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr_test",
"NODE_ENV": "development"
}
},
"rollback": {
"command": "babel-node node_modules/.bin/knex migrate:rollback",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr_test",
"NODE_ENV": "test"
}
},
"seed": {
"command": "cross-env knex seed:run",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr",
"NODE_ENV": "development"
}
},
"seed:test": {
"command": "cross-env knex seed:run",
"env": {
"BOLDR__DB__URL": "postgres://postgres:password@localhost:5432/boldr_test",
"NODE_ENV": "test"
}
},
"test": {
"command": "npm run reset && jest -w 2 --forceExit",
"env": {
"BOLDR__DB__URL": "postgres://postgres:[email protected]:5432/boldr_test",
"NODE_ENV": "test",
"KNEX_TEST_TIMEOUT": 30000
}
},
"test:ci": {
"command": "jest --forceExit",
"env": {
"NODE_ENV": "test",
"BOLDR__REDIS__URL": "redis://127.0.0.1:6379",
"BOLDR__DB__URL": "postgres://postgres:[email protected]:5432/boldr_test",
"BOLDR__TOKEN__SECRET": "b0ldrs0s3cr3t",
"KNEX_TEST_TIMEOUT": 30000
}
}
},
"jest": {
"collectCoverage": true,
"coverageDirectory": "<rootDir>/coverage",
"coveragePathIgnorePatterns": [
"<rootDir>/(internal|flow-typed|docs|db|lib|static|boldrAPI)/",
"/node_modules/"
],
"transform": {
"^.+\\.js$": "<rootDir>/internal/jest/transform.js"
},
"testRegex": ".*.spec\\.js",
"setupTestFrameworkScriptFile": "<rootDir>/internal/jest/setup.js",
"testPathIgnorePatterns": [
"<rootDir>/(internal|config|docs|.idea|static|lib|boldrAPI|db)/"
],
"testEnvironment": "node",
"transformIgnorePatterns": [
"/boldrAPI/",
"/lib/",
"/node_modules/",
"/db/"
],
"coverageReporters": [
"json"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-emoji"
}
}
}