Commit | Line | Data |
---|---|---|
c4a19794 | 1 | import copy from 'rollup-plugin-copy'; |
44b07a21 | 2 | import del from 'rollup-plugin-delete'; |
c4a19794 | 3 | import typescript from 'rollup-plugin-typescript2'; |
44b07a21 JB |
4 | |
5 | export default { | |
6 | input: ['src/start.ts', 'src/charging-station/StationWorker.ts'], | |
7 | output: { | |
8 | dir: 'dist', | |
9 | format: 'cjs', | |
10 | exports: 'auto', | |
11 | sourcemap: true, | |
12 | preserveModules: true, | |
13 | preserveModulesRoot: 'src' | |
14 | }, | |
c4a19794 | 15 | external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston', 'winston-daily-rotate-file', 'worker_threads'], |
44b07a21 | 16 | plugins: [ |
c4a19794 | 17 | typescript({ |
44b07a21 JB |
18 | tsconfig: 'tsconfig.json' |
19 | }), | |
20 | del({ | |
21 | targets: 'dist/*' | |
c4a19794 JB |
22 | }), |
23 | copy({ | |
24 | targets: [ | |
25 | { src: 'src/assets', dest: 'dist/' } | |
26 | ] | |
44b07a21 JB |
27 | }) |
28 | ] | |
29 | }; |