-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
57 lines (57 loc) · 2.58 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
{
"name": "Fast-Food-Fast",
"version": "1.0.0",
"description": "Fast-Food_Fast is a food delivery service for a restaurant",
"main": "server.js",
"repository": "https://github.com/eltNEG/Fast-Food-Fast.git",
"author": "eltNEG <yorewole@gmail.com>",
"license": "MIT",
"dependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"bcrypt": "^3.0.1",
"cross-env": "^5.2.0",
"dotenv": "^6.0.0",
"express": "^4.16.3",
"jsonwebtoken": "^8.3.0",
"pg": "^7.4.3",
"validator": "^10.8.0"
},
"engines": {
"node": "10.7.0"
},
"scripts": {
"prodstart": "yarn build && node dist/server.js",
"devstart": "nodemon --exec npm run babel-node -- ./server/server.js",
"babel-node": "babel-node --presets=env",
"start": "npm run babel-node .server/server.js",
"build": "babel ./server -d dist --ignore node_modules,UI",
"eslint": "./node_modules/.bin/eslint ./server",
"test": "mocha ./server/test --timeout 15000 --require babel-polyfill --require babel-register --exit",
"local-test": "npm run create-table && npm run seed-users && cross-env NODE_ENV=localtest DATABASE_URL_TEST=postgres://postgres@localhost:5432/localtest mocha ./server/test --timeout 15000 --require babel-polyfill --require babel-register --exit",
"clean": "rm -rf dist coverage",
"cov": "npm run build && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec dist/test/*.js",
"coverage": "npm run build && ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec dist/test/*.js && cat ./coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js && npm run clean || npm run clean",
"create-table": "cross-env NODE_ENV=localtest DATABASE_URL_TEST=postgres://postgres@localhost:5432/localtest npm run babel-node ./server/db/createTable.js",
"seed-users": "cross-env NODE_ENV=localtest DATABASE_URL_TEST=postgres://postgres@localhost:5432/localtest npm run babel-node ./server/db/createSeedUsers.js",
"clean-db": "cross-env NODE_ENV=localtest DATABASE_URL_TEST=postgres://postgres@localhost:5432/localtest npm run babel-node ./server/db/cleandb.js"
},
"eslintIgnore": [
"node_modules",
"UI"
],
"devDependencies": {
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"eslint": "^5.5.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"istanbul": "^0.4.5",
"jasmine": "^3.2.0",
"mocha": "^5.2.0",
"request": "^2.88.0"
}
}