Make the build app self contained.
[e-mobility-charging-stations-simulator.git] / package.json
index f83a76f895a88f3084d3196b31164609313a9eaa..b4fe270f9fbd3a955d5124a420a2f3d2a459d493 100644 (file)
@@ -2,7 +2,8 @@
   "name": "ev-simulator",
   "version": "1.0.0",
   "engines": {
-    "node": "14.x.x"
+    "node": "14.x.x",
+    "npm": "6.x.x"
   },
   "repository": {
     "type": "git",
       "url": "http://www.apache.org/licenses/LICENSE-2.0"
     }
   ],
-  "main": "src/index.js",
+  "main": "dist/start.js",
   "scripts": {
-    "start": "node src/index.js",
-    "start:debug": "node --inspect-brk src/index.js",
-    "start:prof": "node --prof src/index.js",
-    "start:doctorprof": "clinic doctor -- node src/index.js",
-    "start:flameprof": "clinic flame -- node src/index.js",
-    "start:bubbleprof": "clinic bubbleprof -- node src/index.js",
-    "lint": "eslint src",
-    "lint:fix": "eslint --fix src",
-    "flow": "flow",
-    "flow:check": "flow check src",
-    "flow:deps": "flow-typed install",
-    "test": "echo \"Error: no test specified\" && exit 1",
+    "prestart": "npm run build",
+    "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js",
+    "start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.js",
+    "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.js",
+    "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.js",
+    "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.js",
+    "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.js",
+    "grunt": "grunt",
+    "build": "npm run grunt",
+    "build:mta": "mbt build",
+    "build:watch": "npm run grunt -- ts:buildWatch",
+    "lint": "cross-env TIMING=1 eslint --ext .js,.ts src",
+    "lint:fix": "cross-env TIMING=1 eslint --fix --ext .js,.ts src",
+    "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'",
+    "tsc": "tsc",
+    "test": "echo \"Error: no tests implemented\" && exit 1",
     "clinic:clean": "clinic clean",
     "npm-check": "npm-check",
+    "git:sinit": "git submodule update --init --recursive --force",
     "git:sdiff": "git diff && git submodule foreach 'git diff'",
-    "git:supdate": "git submodule update --remote --merge",
+    "git:supdate": "git submodule update --remote --recursive --merge",
     "git:spush": "git push --recurse-submodules=on-demand"
   },
   "dependencies": {
-    "uuid": "^8.3.1",
+    "mongodb": "^3.6.4",
+    "poolifier": "^1.2.1",
+    "source-map-support": "^0.5.19",
+    "tslib": "^2.1.0",
+    "uuid": "^8.3.2",
     "winston": "^3.3.3",
-    "worker-threads-pool": "^2.0.0",
-    "ws": "^7.3.1"
+    "winston-daily-rotate-file": "^4.5.0",
+    "ws": "^7.4.3"
+  },
+  "optionalDependencies": {
+    "bufferutil": "^4.0.3",
+    "utf-8-validate": "^5.0.4"
   },
   "devDependencies": {
-    "babel-eslint": "^10.1.0",
-    "clinic": "^7.0.0",
-    "eslint": "^7.11.0",
-    "eslint-config-google": "^0.14.0",
-    "eslint-config-node": "^4.1.0",
-    "eslint-plugin-flowtype": "^5.2.0",
-    "flow-bin": "^0.135.0",
-    "flow-typed": "^3.2.1",
-    "npm-check": "^5.9.2"
+    "@types/node": "^14.14.27",
+    "@types/uuid": "^8.3.0",
+    "@types/ws": "^7.4.0",
+    "@typescript-eslint/eslint-plugin": "^4.15.0",
+    "@typescript-eslint/parser": "^4.15.0",
+    "clinic": "^8.0.1",
+    "cross-env": "^7.0.3",
+    "eslint": "^7.20.0",
+    "grunt": "^1.3.0",
+    "grunt-contrib-clean": "^2.0.0",
+    "grunt-contrib-copy": "^1.0.0",
+    "grunt-mkdir": "^1.1.0",
+    "grunt-ts": "^6.0.0-beta.22",
+    "mbt": "^1.1.0",
+    "npm-check": "^5.9.2",
+    "typescript": "^4.1.5"
   }
 }