X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=231b7485adaa49fa621505f85b16bd197c44c91a;hb=4b65fe711865b86ae13b9217ddce2d92e3cb6254;hp=bdc96d661e2eb2d0f0c41ee078bfad4d551cd95a;hpb=44a95b7fc8487ae8116f89820ca03cb108dfada8;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index bdc96d66..231b7485 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,15 +1,14 @@ +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 json from '@rollup/plugin-json'; 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', @@ -33,13 +32,20 @@ export default { }, ], external: [ + '@mikro-orm/core', + '@mikro-orm/reflection', + 'ajv', + 'ajv-draft-04', + 'ajv-formats', + 'async_hooks', 'basic-ftp', 'chalk', 'crypto', - 'express', 'fs', - '@mikro-orm/core', - '@mikro-orm/reflection', + 'http', + 'http-status-codes', + 'just-clone', + 'just-merge', 'mnemonist/lru-map-with-delete', 'moment', 'mongodb', @@ -51,11 +57,11 @@ export default { 'tar', 'url', 'uuid', - 'ws', + 'winston', 'winston-daily-rotate-file', 'winston/lib/winston/transports/index.js', - 'winston', 'worker_threads', + 'ws', ], plugins: [ json(), @@ -63,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/' }],