X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=package.json;h=7e3bf7819070c5b27ab7799be1167298594688b8;hb=672fed6e70e94e37ba8db689d8517f42ae0f4477;hp=e7c480ee79dd0088af1c5d3dfe2f800d320f765d;hpb=99503026b3fc316b7743d55a7e5c1c814bc43499;p=e-mobility-charging-stations-simulator.git diff --git a/package.json b/package.json index e7c480ee..7e3bf781 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,23 @@ { - "name": "ev-simulator", - "version": "1.0.0", + "name": "charging-stations-simulator", + "version": "1.1.46", "engines": { - "node": "14.x.x", - "npm": "6.x.x" + "node": "16.x.x", + "npm": "8.x.x" }, "repository": { "type": "git", - "url": "https://github.com/sap-labs-france/ev-simulator.git" + "url": "https://github.com/jerome-benoit/charging-stations-simulator.git" }, "description": "Electric Vehicle charging stations simulator", "author": "SAP E-Mobility Labs France ", + "contributors": [ + { + "name": "Jérôme Benoit", + "email": "jerome.benoit@piment-noir.org", + "url": "https://github.com/jerome-benoit" + } + ], "license": "Apache-2.0", "licenses": [ { @@ -18,7 +25,17 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "main": "dist/start.js", + "main": "./dist/start.js", + "auto-changelog": { + "commitUrl": "https://github.com/jerome-benoit/charging-stations-simulator/commit/{id}", + "issueUrl": "https://github.com/jerome-benoit/charging-stations-simulator/issues/{id}", + "mergeUrl": "https://github.com/jerome-benoit/charging-stations-simulator/pull/{id}", + "compareUrl": "https://github.com/jerome-benoit/charging-stations-simulator/compare/{from}...{to}" + }, + "mikro-orm": { + "tsConfigPath": "./tsconfig-orm.json", + "useTsNode": true + }, "scripts": { "prestart": "npm run build", "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js", @@ -29,56 +46,83 @@ "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", + "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- 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", + "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc mocha test/**/*Test.ts", + "coverage": "nyc report --reporter=lcov", + "coverage:html": "nyc report --reporter=html", "clinic:clean": "clinic clean", "npm-check": "npm-check", + "robohydra": "robohydra test/robohydra/config.json", "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:spush": "git push --recurse-submodules=on-demand", + "release": "release-it" }, "dependencies": { - "mongodb": "^3.6.6", - "poolifier": "^2.0.1", - "source-map-support": "^0.5.19", - "tslib": "^2.2.0", + "@mikro-orm/core": "^4.5.10", + "@mikro-orm/mariadb": "^4.5.10", + "@mikro-orm/reflection": "^4.5.10", + "@mikro-orm/sqlite": "^4.5.10", + "basic-ftp": "^4.6.6", + "chalk": "^4.1.2", + "mongodb": "^4.3.1", + "poolifier": "^2.2.0", + "proper-lockfile": "^4.1.2", + "source-map-support": "^0.5.21", + "tar": "^6.1.11", + "tslib": "^2.3.1", "uuid": "^8.3.2", - "winston": "^3.3.3", - "winston-daily-rotate-file": "^4.5.2", - "ws": "^7.4.5" + "winston": "^3.5.1", + "winston-daily-rotate-file": "^4.6.0", + "ws": "^8.5.0" }, "optionalDependencies": { - "bufferutil": "^4.0.3", - "utf-8-validate": "^5.0.4" + "bufferutil": "^4.0.6", + "utf-8-validate": "^5.0.8" }, "devDependencies": { - "@types/node": "^14.14.43", - "@types/uuid": "^8.3.0", - "@types/ws": "^7.4.2", - "@typescript-eslint/eslint-plugin": "^4.22.0", - "@typescript-eslint/parser": "^4.22.0", - "clinic": "^8.0.1", + "@istanbuljs/nyc-config-typescript": "^1.0.2", + "@mikro-orm/cli": "^4.5.10", + "@rollup/plugin-json": "^4.1.0", + "@types/mocha": "^9.1.0", + "@types/mochawesome": "^6.2.1", + "@types/node": "^16.11.22", + "@types/proper-lockfile": "^4.1.2", + "@types/tar": "^6.1.1", + "@types/uuid": "^8.3.4", + "@types/ws": "^8.2.2", + "@typescript-eslint/eslint-plugin": "^5.11.0", + "@typescript-eslint/parser": "^5.11.0", + "auto-changelog": "^2.4.0", + "clinic": "^11.0.0", "cross-env": "^7.0.3", - "eslint": "^7.25.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jsdoc": "^32.3.3", - "mbt": "^1.1.1", + "eslint": "^8.8.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-jsdoc": "^37.8.0", + "eslint-plugin-node": "^11.1.0", + "expect": "^27.5.1", + "mocha": "^9.2.0", + "mochawesome": "^7.0.1", "npm-check": "^5.9.2", - "rollup": "^2.46.0", + "nyc": "^15.1.0", + "release-it": "^14.12.4", + "robohydra": "^0.6.9", + "rollup": "^2.67.1", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-delete": "^2.0.0", + "rollup-plugin-istanbul": "^3.0.0", "rollup-plugin-terser": "^7.0.2", - "rollup-plugin-typescript2": "^0.30.0", - "typescript": "^4.2.4" + "rollup-plugin-ts": "^2.0.5", + "ts-node": "^10.5.0", + "typescript": "^4.5.5" } }