Web UI: Refine documentation and code cleanup
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index 1cb306ab7d16c050cadf465951004e189f32c089..2f1c5d69f5691999189e53d8e3a9bbef39686500 100644 (file)
@@ -9,7 +9,7 @@ import ts from 'rollup-plugin-ts';
 const isDevelopmentBuild = process.env.BUILD === 'development';
 
 export default {
-  input: ['src/start.ts', 'src/ui/httpd/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
+  input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
   output: [
     {
       dir: 'dist',
@@ -33,13 +33,15 @@ export default {
     },
   ],
   external: [
+    '@mikro-orm/core',
+    '@mikro-orm/reflection',
+    'ajv',
+    'ajv-draft-04',
+    'ajv-formats',
     'basic-ftp',
     'chalk',
     'crypto',
-    'express',
     'fs',
-    '@mikro-orm/core',
-    '@mikro-orm/reflection',
     'mnemonist/lru-map-with-delete',
     'moment',
     'mongodb',
@@ -51,11 +53,11 @@ export default {
     'tar',
     'url',
     'uuid',
-    'ws',
+    'winston',
     'winston-daily-rotate-file',
     'winston/lib/winston/transports/index.js',
-    'winston',
     'worker_threads',
+    'ws',
   ],
   plugins: [
     json(),
@@ -65,7 +67,13 @@ export default {
     }),
     isDevelopmentBuild && istanbul(),
     del({
-      targets: ['dist/*', '!dist/assets', 'dist/assets/*.json', 'dist/assets/station-templates'],
+      targets: [
+        'dist/*',
+        '!dist/assets',
+        'dist/assets/*.json',
+        'dist/assets/station-templates',
+        'dist/assets/json-schemas',
+      ],
     }),
     copy({
       targets: [{ src: 'src/assets', dest: 'dist/' }],