X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=effe368d667737a6ec2e3e38e389e20c7958ad3e;hb=981ebfbeeb421a4b620aa61861f9ddb313a03f67;hp=bdc96d661e2eb2d0f0c41ee078bfad4d551cd95a;hpb=44a95b7fc8487ae8116f89820ca03cb108dfada8;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index bdc96d66..effe368d 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,15 +1,15 @@ +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 +33,17 @@ 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', + 'http', + 'http-status-codes', 'mnemonist/lru-map-with-delete', 'moment', 'mongodb', @@ -51,11 +55,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 +69,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/' }],