This repository has been archived by the owner on Feb 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
144 lines (144 loc) · 5.65 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
{
"name": "wdes-stats",
"repository": "wdes/wdes-stats",
"version": "2.1.0",
"description": "The api of WdesStats",
"main": "dist/server.js",
"private": true,
"readme": "https://gitlab.com/wdes/wdes-stats#readme",
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"apidocs",
"dist",
"db/migrations",
"test",
"config",
"coverage",
".nyc_output"
],
"reporter": [
"text",
"text-summary"
],
"all": true
},
"scripts": {
"build": "tsc",
"changelog": "changelog-generator-twig --convention conventional+legacy --owner wdes --repo stats --repoDir ./ --baseCommit 16179d5a534b34f29915590c8e75579b547ebb4a",
"changelog-file": "npm run --silent changelog > CHANGELOG.md",
"apidoc": "apidoc --input src/ --output apidocs --private false",
"apidoc:private": "apidoc --input src/ --output apidocs --private true",
"test": "NODE_ENV=test nyc mocha --require ts-node/register --require source-map-support/register --ui tdd test/index.ts",
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov",
"migrate:production": "NODE_ENV=production ts-node ./node_modules/.bin/sequelize db:migrate --config config/db.ts --env production",
"migrate:test": "NODE_ENV=test ts-node ./node_modules/.bin/sequelize db:migrate --config config/db.ts --env test",
"migrate:development": "NODE_ENV=development ts-node ./node_modules/.bin/sequelize db:migrate --config config/db.ts --env development",
"migrate:production:reset": "NODE_ENV=production ts-node ./node_modules/.bin/sequelize db:migrate:undo:all --config config/db.ts --env production",
"migrate:test:reset": "NODE_ENV=test ts-node ./node_modules/.bin/sequelize db:migrate:undo:all --config config/db.ts --env test",
"migrate:development:reset": "NODE_ENV=development ts-node ./node_modules/.bin/sequelize db:migrate:undo:all --config config/db.ts --env development",
"prettier": "prettier --ignore-path ./.prettierignore --write \"*/**/*.ts\" \"*.ts\" \"*/**/*.js\"",
"jshint": "jshint ./",
"tslint": "tslint -c tslint.json --project ./",
"install:service": "ts-node service.ts",
"start": "NODE_ENV=production node dist/server.js",
"start:dev": "NODE_ENV=development node dist/server.js",
"start:test": "NODE_ENV=test node dist/server.js",
"service:start": "service wdesstats start",
"service:stop": "service wdesstats stop",
"heroku-prebuild": "export NPM_CONFIG_PRODUCTION=false; export NODE_ENV=; NPM_CONFIG_PRODUCTION=false NODE_ENV=development yarn && npm install --only=dev --dev && yarn run build",
"heroku-postbuild": "export NPM_CONFIG_PRODUCTION=true; export NODE_ENV=production; yarn run migrate:production && yarn run apidoc",
"sentry-sync-commits": "VERSION=$(ts-node -p \"require('./package.json').version\") && sentry-cli releases --project 'wdes-stats' --org wdes new $VERSION && sentry-cli releases --org wdes set-commits $VERSION"
},
"keywords": [
"api"
],
"license": "MPL-2.0",
"bugs": {
"url": "https://gitlab.com/wdes/wdes-stats/issues"
},
"homepage": "https://gitlab.com/wdes/wdes-stats#readme",
"dependencies": {
"@sentry/node": "^6.0.3",
"@types/better-queue": "^3.8.2",
"@types/express": "4.17.11",
"@types/express-session": "^1.17.3",
"@types/joi": "^17.2.2",
"@types/node-cron": "^2.0.3",
"@types/nodemailer": "^6.4.0",
"@types/passport-github": "^1.1.5",
"@types/request": "^2.48.5",
"@types/urlencode": "^1.1.2",
"better-queue": "^3.8.10",
"body-parser": "^1.19.0",
"cluster": "^0.7.7",
"cookie-session": "^1.4.0",
"dotenv": "^8.2.0",
"errorhandler": "^1.5.1",
"express": "^4.17.1",
"joi": "^17.3.0",
"log4js": "^6.3.0",
"module-alias": "^2.2.2",
"mysql2": "^2.2.5",
"node-cron": "^2.0.3",
"node-linux": "^0.1.12",
"nodemailer": "^6.4.17",
"passport": "^0.4.1",
"passport-github": "^1.1.0",
"path-to-regexp": "^6.2.0",
"request": "^2.88.2",
"sequelize": "^6.5.0",
"sequelize-cli": "^6.2.0",
"ts-node": "^9.1.1",
"twig": "^1.15.4",
"typescript": "^4.1.3",
"urlencode": "^1.1.0",
"vhost": "^3.0.2"
},
"devDependencies": {
"@sentry/cli": "^1.61.0",
"@types/mocha": "^8.2.0",
"@types/sinon": "^9.0.10",
"apidoc": "^0.26.0",
"chai": "^4.2.0",
"changelog-generator-twig": "^1.3.1",
"jshint": "^2.12.0",
"mocha": "^8.2.1",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"sinon": "^9.2.4",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},
"prettier": {
"singleQuote": true,
"proseWrap": "never",
"trailingComma": "es5",
"bracketSpacing": true,
"printWidth": 120
},
"engines": {
"node": ">=10.0.0"
},
"apidoc": {
"title": "WdesStats",
"url": "https://wdes-stats.wdes.eu"
},
"_moduleAliases": {
"@lib": "src/lib",
"@lib-plugins": "src/lib/plugins",
"@static": "src/static",
"@util": "src/util",
"@api": "src/api",
"@src": "src",
"@test": "test",
"@middlewares": "src/middlewares",
"@root": "./",
"@db": "db",
"@models": "db/models",
"@config": "config"
}
}