-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
96 lines (96 loc) · 3.1 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
{
"name": "sentiment-analysis",
"version": "1.0.0",
"description": "Sentiment analysis of tweets based on a keyword with a UI",
"main": "server.js",
"scripts": {
"build": "babel src -d dist --ignore src/**/*.test.js,src/migrations/**",
"build:prod": "./build.sh",
"buildBoth": "yarn build && cd client && yarn build",
"clean": "rm -rf dist && rm -rf coverage",
"client": "cd client && yarn start",
"client:test": "cd client && yarn test",
"installBoth": "yarn install && cd client && yarn install",
"installBoth:prod": "yarn install --prod && cd client && yarn install --prod",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"local": "concurrently --kill-others-on-fail \"yarn start\" \"yarn client\"",
"knex:migrate": "NODE_ENV=$NODE_ENV knex migrate:latest --knexfile=src/knexfile.js",
"knex:create": "NODE_ENV=$NODE_ENV knex migrate:make --knexfile=src/knexfile.js $1",
"knex:rollback": "NODE_ENV=$NODE_ENV knex migrate:rollback --knexfile=src/knexfile.js",
"start": "NODE_ENV=$NODE_ENV yarn run build && node dist/server.js",
"start:prod": "NODE_ENV=production node server.js",
"start:watch": "NODE_ENV=$NODE_ENV yarn run build && nodemon dist/server.js",
"test": "yarn lint && jest --coverage && yarn client:test"
},
"author": "Sean Franklin <franklsm1@gmail.com>",
"license": "ISC",
"dependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@types/lodash": "^4.14.144",
"cors": "^2.8.5",
"date-fns": "^2.0.0-beta.4",
"dotenv": "^6.0.0",
"express": "^4.16.3",
"https-proxy-agent": "^2.2.2",
"knex": "^0.19.5",
"lodash": "^4.17.21",
"mssql": "^5.1.0",
"mysql": "^2.16.0",
"node-cron": "^2.0.3",
"node-fetch": "^2.6.1",
"sentiment": "^5.0.1"
},
"devDependencies": {
"@types/supertest": "^2.0.8",
"babel-eslint": "10.0.3",
"concurrently": "^3.6.0",
"eslint": "^6.1.0",
"eslint-config-semistandard": "^14.0.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.14.1",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"fetch-mock": "^7.3.9",
"husky": "^3.0.9",
"jest": "24.8.0",
"nodemon": "^1.18.3",
"pre-commit": "^1.2.2",
"supertest": "^4.0.2"
},
"jest": {
"coverageThreshold": {
"global": {
"statements": 98,
"branches": 100,
"functions": 100,
"lines": 98
}
},
"testURL": "http://localhost/",
"testPathIgnorePatterns": [
"<rootDir>/client/"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.js",
"!<rootDir>/src/migrations/**",
"!<rootDir>/src/models/**",
"!<rootDir>/src/server.js"
],
"setupFilesAfterEnv": [
"<rootDir>/setupTests.js"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn test && cd client && yarn test"
}
}
}