repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: ensure measurand min value are taken into account
[e-mobility-charging-stations-simulator.git]
/
bundle.js
diff --git
a/bundle.js
b/bundle.js
index a3b0ad68535cef5a48f7dce1a1af75aa3eb35cb3..dd6a46ca4f42f8671fab35beda34012ba54292a7 100644
(file)
--- a/
bundle.js
+++ b/
bundle.js
@@
-1,6
+1,7
@@
/* eslint-disable n/no-unpublished-import */
import { env } from 'node:process';
/* eslint-disable n/no-unpublished-import */
import { env } from 'node:process';
+import chalk from 'chalk';
import { build } from 'esbuild';
import { clean } from 'esbuild-plugin-clean';
import { copy } from 'esbuild-plugin-copy';
import { build } from 'esbuild';
import { clean } from 'esbuild-plugin-clean';
import { copy } from 'esbuild-plugin-copy';
@@
-8,6
+9,8
@@
import { copy } from 'esbuild-plugin-copy';
const isDevelopmentBuild = env.BUILD === 'development';
const sourcemap = !!isDevelopmentBuild;
const isDevelopmentBuild = env.BUILD === 'development';
const sourcemap = !!isDevelopmentBuild;
+console.info(chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`));
+console.time('Build time');
(async () => {
await build({
entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
(async () => {
await build({
entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
@@
-75,3
+78,4
@@
const sourcemap = !!isDevelopmentBuild;
],
});
})();
],
});
})();
+console.timeEnd('Build time');