X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.js;h=e6b710e8d9a028460adea339091f41add0056993;hb=07f350040f34e6727c548bc645e9982c189cd4ef;hp=79cc619ae0b40ab377425b083006716efe7910c2;hpb=84e52c2c9bc85c3b45e61b37b89c3166fae6615e;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.js b/rollup.config.js index 79cc619a..e6b710e8 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,6 +1,7 @@ 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 typescript from 'rollup-plugin-typescript2'; @@ -8,7 +9,7 @@ import typescript from 'rollup-plugin-typescript2'; const isDevelopmentBuild = process.env.BUILD === 'development'; export default { - input: ['src/start.ts', 'src/charging-station/StationWorker.ts'], + input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'], output: { dir: 'dist', @@ -19,12 +20,13 @@ export default { preserveModulesRoot: 'src', ...!isDevelopmentBuild && { plugins: [terser({ numWorkers: 2 })] } }, - external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'], + external: ['basic-ftp', 'chalk', 'crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'tar', 'url', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'], plugins: [ json(), typescript({ tsconfig: 'tsconfig.json' }), + isDevelopmentBuild && istanbul(), del({ targets: 'dist/*' }),