Hook the OCPP 2.0 stack into the main code
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index 3ab0886e357ae04aebb05d6e15065cfbdd7414b6..231b7485adaa49fa621505f85b16bd197c44c91a 100644 (file)
@@ -2,14 +2,13 @@ import json from '@rollup/plugin-json';
 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 { terser } from 'rollup-plugin-terser';
 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',
@@ -38,11 +37,15 @@ export default {
     'ajv',
     'ajv-draft-04',
     'ajv-formats',
+    'async_hooks',
     'basic-ftp',
     'chalk',
     'crypto',
-    'express',
     'fs',
+    'http',
+    'http-status-codes',
+    'just-clone',
+    'just-merge',
     'mnemonist/lru-map-with-delete',
     'moment',
     'mongodb',
@@ -66,9 +69,14 @@ export default {
       tsconfig: 'tsconfig.json',
       browserslist: false,
     }),
-    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/' }],