X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=package.json;h=0ca5416e6e71e5274ca376cdc38a5f171f3d5df4;hb=d42d12b7b15b54e36f46e49108a8f7dee4514fcc;hp=7704de26ed99b8c37be12581e9d152be94856c8f;hpb=2e3ac96de33fd8c94e746fee6a7dcde877d6ddc5;p=e-mobility-charging-stations-simulator.git diff --git a/package.json b/package.json index 7704de26..f5ae27ce 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "ev-simulator", "version": "1.0.0", "engines": { - "node": ">=13.14.0" + "node": "14.x.x", + "npm": "6.x.x" }, "repository": { "type": "git", @@ -17,42 +18,67 @@ "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:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.js", + "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development 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", + "rollup": "rollup --config", + "build": "npm run rollup", + "build:dev": "npm run rollup -- --environment BUILD:development", + "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch", + "build:mta": "mbt build", + "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.0.0", - "winston": "^3.2.1", - "worker-threads-pool": "^2.0.0", - "ws": "^7.3.0" + "mongodb": "^3.6.5", + "poolifier": "^2.0.1", + "source-map-support": "^0.5.19", + "tslib": "^2.1.0", + "uuid": "^8.3.2", + "winston": "^3.3.3", + "winston-daily-rotate-file": "^4.5.1", + "ws": "^7.4.4" + }, + "optionalDependencies": { + "bufferutil": "^4.0.3", + "utf-8-validate": "^5.0.4" }, "devDependencies": { - "babel-eslint": "^10.1.0", - "clinic": "^5.0.1", - "eslint": "^7.0.0", - "eslint-config-google": "^0.14.0", - "eslint-config-node": "^4.0.0", - "eslint-plugin-flowtype": "^5.0.3", - "eslint-plugin-node": "^11.1.0", - "flow-bin": "^0.125.1", - "flow-typed": "^3.1.0", - "npm-check": "^5.9.2" + "@types/node": "^14.14.37", + "@types/uuid": "^8.3.0", + "@types/ws": "^7.4.1", + "@typescript-eslint/eslint-plugin": "^4.20.0", + "@typescript-eslint/parser": "^4.20.0", + "clinic": "^8.0.1", + "cross-env": "^7.0.3", + "eslint": "^7.23.0", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jsdoc": "^32.3.0", + "mbt": "^1.1.1", + "npm-check": "^5.9.2", + "rollup": "^2.44.0", + "rollup-plugin-analyzer": "^4.0.0", + "rollup-plugin-copy": "^3.4.0", + "rollup-plugin-delete": "^2.0.0", + "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-typescript2": "^0.30.0", + "typescript": "^4.2.3" } }