X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.js;h=46683b3b1f9900d71aaf90b136efe296947936eb;hb=ff62e9c8adbdb20d56eb045c7e3f311bb09229da;hp=2184bb6e5657cb5ec4f5425dbcb24a89e61184f7;hpb=05745045efc825738ba9ba4b30d4d4ec932a5dd3;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.js b/rollup.config.js index 2184bb6e..46683b3b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,6 +1,8 @@ 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'; @@ -20,9 +22,11 @@ export default { }, external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'], plugins: [ + json(), typescript({ tsconfig: 'tsconfig.json' }), + isDevelopmentBuild && istanbul(), del({ targets: 'dist/*' }),