forked from sap-labs-france/ev-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
247 lines (247 loc) · 11.9 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
243
244
245
246
247
{
"name": "ev-server",
"version": "2.3.6",
"engines": {
"node": "14.x.x",
"npm": "6.x.x"
},
"repository": {
"type": "git",
"url": "https://github.com/LucasBrazi06/ev-server.git"
},
"license": "Apache-2.0",
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"description": "Backend for Electric Vehicle charging station",
"author": "SAP E-Mobility Labs France <[email protected]>",
"homepage": "https://github.com/LucasBrazi06/ev-server",
"main": "dist/start.js",
"scripts": {
"git:sinit": "git submodule update --init --recursive --force",
"git:sdiff": "git diff && git submodule foreach 'git diff'",
"git:supdate": "git submodule update --remote --recursive --merge",
"git:spush": "git push --recurse-submodules=on-demand",
"git:sreset": "git submodule foreach 'git reset --hard'",
"components:export": "node src/componentsExport.js",
"start": "npm run start:prod",
"prestart": "npm run build:prod",
"config:batch": "ncp src/assets/configs-scp/e-Mobility-config/config_batch_server.json dist/assets/config.json",
"config:oData": "ncp src/assets/configs-scp/e-Mobility-config/config_odata_server.json dist/assets/config.json",
"config:fakerest": "ncp src/assets/configs-scp/e-Mobility-config/config_fake_rest_server.json dist/assets/config.json",
"config:ocpi": "ncp src/assets/configs-scp/e-Mobility-config/config_ocpi_server.json dist/assets/config.json",
"config:rest": "ncp src/assets/configs-scp/e-Mobility-config/config_rest_server.json dist/assets/config.json",
"config:chargebox-json": "ncp src/assets/configs-scp/e-Mobility-config/config_chargebox_json_server.json dist/assets/config.json",
"config:chargebox-soap": "ncp src/assets/configs-scp/e-Mobility-config/config_chargebox_soap_server.json dist/assets/config.json",
"start:dev": "npm run components:export && cross-env NODE_ENV=development ts-node-dev --files --max-old-space-size=4096 -- src/start.ts",
"start:dev:debug": "npm run components:export && cross-env NODE_ENV=development ts-node-dev --inspect --files --max-old-space-size=4096 -- src/start.ts",
"start:dev:nodemon": "npm run components:export && nodemon --exec 'ts-node --files' src/start.ts",
"start:dev:debug:nodemon": "npm run components:export && nodemon --exec 'ts-node --files' src/start.ts 9229",
"start:dev:prof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development node -r source-map-support/register --prof -- dist/start.js",
"start:dev:doctorprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development clinic doctor -- node -r source-map-support/register dist/start.js",
"start:dev:flameprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development clinic flame -- node -r source-map-support/register dist/start.js",
"start:dev:bubbleprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development clinic bubbleprof -- node -r source-map-support/register dist/start.js",
"start:devbuild": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development-build node -r source-map-support/register dist/start.js",
"start:prod": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=production node -r source-map-support/register dist/start.js",
"start:prod:prof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=production node -r source-map-support/register --prof dist/start.js",
"start:prod:doctorprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.js",
"start:prod:flameprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.js",
"start:prod:bubbleprof": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.js",
"start:email": "maildev --web 1080 --web-ip 127.0.0.1 --smtp 1025 --verbose --incoming-user evse-mail-user --incoming-pass evse-mail-pwd",
"start:emailBackup": "maildev --web 2080 --web-ip 127.0.0.1 --smtp 2025 --verbose --incoming-user evse-mail-user --incoming-pass evse-mail-pwd",
"build": "npm run build:prod",
"build:dev": "webpack --env dev",
"build:prod": "webpack --env prod",
"clean-install": "rimraf package-lock.json && rimraf node_modules && npm cache clear --force && npm install",
"eslint": "cross-env TIMING=1 eslint --ext .js,.ts build/types src test",
"eslint:fix": "cross-env TIMING=1 eslint --ext .js,.ts --fix build/types src test",
"autocannon": "autocannon",
"mochatest": "cross-env TS_NODE_FILES=true nyc mocha test/**/*Test.ts",
"mochatest:parallel": "cross-env TS_NODE_FILES=true nyc mocha --parallel test/**/*Test.ts",
"mochatest:chargingStation": "cross-env TS_NODE_FILES=true mocha test/**/OCPP*Test.ts",
"mochatest:ocpi": "cross-env TS_NODE_FILES=true mocha test/**/OCPI*Test.ts",
"mochatest:tenant": "cross-env TS_NODE_FILES=true mocha test/**/*TenantTest.ts",
"mochatest:org": "cross-env TS_NODE_FILES=true mocha test/**/*OrgTest.ts",
"mochatest:setting": "cross-env TS_NODE_FILES=true mocha test/**/*SettingTest.ts",
"mochatest:user": "cross-env TS_NODE_FILES=true mocha test/**/UserTest.ts",
"mochatest:siteorg": "cross-env TS_NODE_FILES=true mocha test/**/SiteOrgTest.ts",
"mochatest:siteareaorg": "cross-env TS_NODE_FILES=true mocha test/**/SiteAreaOrgTest.ts",
"mochatest:transaction": "cross-env TS_NODE_FILES=true mocha test/**/TransactionTest.ts",
"mochatest:stat": "cross-env TS_NODE_FILES=true mocha test/**/StatisticsTest.ts",
"mochatest:auth": "cross-env TS_NODE_FILES=true mocha test/**/AuthenticationTest.ts",
"mochatest:ocpp": "cross-env TS_NODE_FILES=true mocha test/**/OCPP*Test.ts",
"mochatest:authentication": "cross-env TS_NODE_FILES=true mocha test/**/AuthenticationTest.ts",
"mochatest:createContext": "cross-env TS_NODE_FILES=true mocha test/**/ContextBuilderRunner.ts",
"mochatest:crypto": "cross-env TS_NODE_FILES=true mocha test/**/EncryptionSettingTest.ts",
"mochatest:filter": "cross-env TS_NODE_FILES=true mocha test/**/FilterTest.ts",
"mochatest:tenantsetting": "cross-env TS_NODE_FILES=true mocha test/**/ComponentActivationTenantTest.ts",
"mochatest:billing": "cross-env TS_NODE_FILES=true mocha test/**/BillingTest.ts",
"mochatest:asset": "cross-env TS_NODE_FILES=true mocha test/**/AssetTest.ts",
"mochatest:car": "cross-env TS_NODE_FILES=true mocha test/**/CarTest.ts",
"mochatest:locking": "cross-env TS_NODE_FILES=true mocha test/**/LockingTest.ts",
"mochatest:firmwareUpdateStatus": "cross-env TS_NODE_FILES=true mocha test/**/FirmwareUpdateStatusTest.ts",
"mochatest:smartCharging": "cross-env TS_NODE_FILES=true mocha test/**/SmartChargingTest.ts",
"mochatest:security": "cross-env TS_NODE_FILES=true mocha test/**/SecurityTest.ts",
"mochatest:registrationToken": "cross-env TS_NODE_FILES=true mocha test/**/RegistrationTokenTest.ts",
"coverage": "nyc report --reporter=lcov",
"coverage:html": "nyc report --reporter=html",
"clinic:clean": "clinic clean",
"npm-check": "npm-check",
"import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}' 'test/**/*.ts{,x}' 'build/types/**/*.ts{,x}'",
"xmake:download-node-headers": "wget https://nexus.wdf.sap.corp:8443/nexus/service/local/repositories/3rd-party.releases.manual-uploads.hosted/content/org/nodejs/download/node/node-headers/12.13.0/node-headers-12.13.0.tar.gz -P ${WORKSPACE}/gen/tmp/"
},
"dependencies": {
"JSONStream": "^1.3.5",
"ajv": "^6.12.6",
"ajv-sanitizer": "^1.1.4",
"axios": "^0.21.1",
"axios-retry": "^3.1.9",
"basic-auth": "^2.0.1",
"bcryptjs": "^2.4.3",
"bluebird": "^3.7.2",
"body-parser": "^1.19.0",
"body-parser-xml": "^2.0.1",
"busboy": "^0.3.1",
"cf-nodejs-logging-support": "^6.6.0",
"cfenv": "^1.2.3",
"chalk": "^4.1.0",
"cors": "^2.8.5",
"country-language": "^0.1.7",
"csvtojson": "^2.0.10",
"ejs": "^3.1.6",
"emailjs": "^3.4.0",
"express": "^4.17.1",
"express-sanitizer": "^1.0.5",
"file-type": "^16.2.0",
"firebase-admin": "^9.5.0",
"helmet": "^4.4.1",
"hpp": "^0.2.3",
"http-status-codes": "^2.1.4",
"i18n-iso-countries": "^6.5.0",
"i18n-js": "^3.8.0",
"intl": "^1.2.5",
"jsonwebtoken": "^8.5.1",
"locale": "^0.1.0",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"moment-duration-format": "^2.3.2",
"moment-timezone": "^0.5.33",
"mongo-sanitize": "^1.1.0",
"mongo-uri-builder": "^3.2.2",
"mongodb": "^3.6.4",
"morgan": "^1.10.0",
"mustache": "^4.1.0",
"node-cron": "^2.0.3",
"object-sizeof": "^1.6.1",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0",
"password-generator": "^2.3.2",
"pdfkit": "^0.11.0",
"qrcode": "^1.4.4",
"rfc2047": "^3.0.1",
"role-acl": "^3.3.7",
"sharp": "^0.27.1",
"simple-odata-server": "^1.1.1",
"socket.io": "^3.1.1",
"socketio-jwt-auth": "^0.2.1",
"source-map-support": "^0.5.19",
"stripe": "^7.63.1",
"strong-soap": "^3.0.0",
"swagger-ui-express": "^4.1.6",
"tslib": "^2.1.0",
"tz-lookup": "^6.1.25",
"urlencode": "^1.1.0",
"uuid": "^8.3.2",
"validator": "^13.5.2",
"ws": "^7.4.3"
},
"optionalDependencies": {
"bufferutil": "^4.0.3",
"utf-8-validate": "^5.0.4"
},
"devDependencies": {
"@types/basic-auth": "^1.1.3",
"@types/bcryptjs": "^2.4.2",
"@types/bluebird": "^3.5.33",
"@types/bluebird-global": "^3.5.12",
"@types/body-parser": "^1.19.0",
"@types/body-parser-xml": "^1.1.0",
"@types/busboy": "^0.2.3",
"@types/cfenv": "^1.2.0",
"@types/chai": "^4.2.15",
"@types/chai-datetime": "0.0.36",
"@types/chai-subset": "^1.3.3",
"@types/chalk": "^2.2.0",
"@types/convict": "^5.2.2",
"@types/cors": "^2.8.10",
"@types/ejs": "^3.0.6",
"@types/express": "^4.17.11",
"@types/faker": "^5.1.6",
"@types/hpp": "^0.2.1",
"@types/i18n-js": "^3.8.0",
"@types/intl": "^1.2.0",
"@types/jsonstream": "^0.8.30",
"@types/jsonwebtoken": "^8.5.0",
"@types/lodash": "^4.14.168",
"@types/mocha": "^8.2.0",
"@types/moment-duration-format": "^2.2.2",
"@types/moment-timezone": "^0.5.30",
"@types/mongo-sanitize": "^1.0.1",
"@types/mongodb": "^3.6.7",
"@types/mustache": "^4.1.1",
"@types/node": "^14.14.28",
"@types/node-cron": "^2.0.3",
"@types/passport": "^1.0.6",
"@types/passport-jwt": "^3.0.4",
"@types/pdfkit": "^0.11.0",
"@types/qrcode": "^1.4.0",
"@types/rfc2047": "^2.0.1",
"@types/rosie": "0.0.38",
"@types/socketio-jwt-auth": "0.0.0",
"@types/stripe": "^7.13.25",
"@types/tz-lookup": "^6.1.0",
"@types/urlencode": "^1.1.2",
"@types/uuid": "^8.3.0",
"@types/validator": "^13.1.3",
"@types/ws": "^7.4.0",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"autocannon": "^7.0.3",
"chai": "^4.3.0",
"chai-datetime": "^1.8.0",
"chai-subset": "^1.6.0",
"circular-dependency-plugin": "^5.2.2",
"clean-webpack-plugin": "^3.0.0",
"clinic": "^8.0.1",
"convict": "^6.0.0",
"copy-webpack-plugin": "^6.4.1",
"cross-env": "^7.0.3",
"eslint": "^7.20.0",
"faker": "^5.4.0",
"json-schema-faker": "^0.5.0-rcv.33",
"maildev": "^1.1.0",
"mocha": "^8.3.0",
"mochawesome": "^6.2.1",
"ncp": "^2.0.0",
"node-notifier": "^8.0.1",
"nodemon": "^2.0.7",
"npm-check": "^5.9.2",
"nyc": "^15.1.0",
"querystring": "^0.2.1",
"rimraf": "^3.0.2",
"rosie": "^2.0.1",
"ts-loader": "^8.0.17",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.1",
"typescript": "^4.1.5",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-merge": "^5.7.3",
"webpack-node-externals": "^2.5.2",
"webpack-shell-plugin-next": "^1.2.0",
"xml2json": "^0.12.0"
}
}