X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=rollup.config.mjs;h=8a3118285ef9bb4d4637e1bc927f651a71b1355d;hb=293aaa3118bbd8c6a6e7933f049d51031c134fa6;hp=1cb306ab7d16c050cadf465951004e189f32c089;hpb=f412fe241e02c715923bee7426e85a6725b78e21;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 1cb306ab..8a311828 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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', @@ -33,29 +32,34 @@ export default { }, ], external: [ + '@mikro-orm/core', + '@mikro-orm/reflection', + 'ajv', + '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', + 'node:crypto', + 'node:util', 'path', 'perf_hooks', 'poolifier', 'proper-lockfile', - 'reflect-metadata', 'tar', 'url', - 'uuid', - 'ws', - 'winston-daily-rotate-file', - 'winston/lib/winston/transports/index.js', 'winston', + 'winston-daily-rotate-file', + 'winston/lib/winston/transports', 'worker_threads', + 'ws', ], plugins: [ json(), @@ -63,9 +67,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/' }],