Add rollup bundling analysis to dev build.
[e-mobility-charging-stations-simulator.git] / package.json
index b4fe270f9fbd3a955d5124a420a2f3d2a459d493..dc329d53fe0ccdd0d5649129ec0f76d23772fd9e 100644 (file)
     "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",
+    "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",
-    "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}'",
     "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",
+    "rollup": "^2.39.0",
+    "rollup-plugin-analyzer": "^4.0.0",
+    "rollup-plugin-copy": "^3.3.0",
+    "rollup-plugin-delete": "^2.0.0",
+    "rollup-plugin-typescript2": "^0.29.0",
     "typescript": "^4.1.5"
   }
 }