Rename StationWorker.ts to ChargingStationWorker.ts
[e-mobility-charging-stations-simulator.git] / rollup.config.js
index 79cc619ae0b40ab377425b083006716efe7910c2..e6b710e8d9a028460adea339091f41add0056993 100644 (file)
@@ -1,6 +1,7 @@
 import analyze from 'rollup-plugin-analyzer';
 import copy from 'rollup-plugin-copy';
 import del from 'rollup-plugin-delete';
+import istanbul from 'rollup-plugin-istanbul';
 import json from '@rollup/plugin-json';
 import { terser } from 'rollup-plugin-terser';
 import typescript from 'rollup-plugin-typescript2';
@@ -8,7 +9,7 @@ import typescript from 'rollup-plugin-typescript2';
 const isDevelopmentBuild = process.env.BUILD === 'development';
 
 export default {
-  input: ['src/start.ts', 'src/charging-station/StationWorker.ts'],
+  input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
   output:
   {
     dir: 'dist',
@@ -19,12 +20,13 @@ export default {
     preserveModulesRoot: 'src',
     ...!isDevelopmentBuild && { plugins: [terser({ numWorkers: 2 })] }
   },
-  external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'],
+  external: ['basic-ftp', 'chalk', 'crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'tar', 'url', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'],
   plugins: [
     json(),
     typescript({
       tsconfig: 'tsconfig.json'
     }),
+    isDevelopmentBuild && istanbul(),
     del({
       targets: 'dist/*'
     }),