OpenDTU-old/webapp
Bernhard Kirchen 3948adf460 keep console.log() when serving webapp
the removal of console and debugger statements by esbuild even when not
building for production seems to be a regression, as these were
definitely working in the past.

this change uses the command parameter to configure esbuild to either
keep or indeed remove the respective statements. they are only kept if
command is not "serve".

to avoid having to indent everything in defineConfig() by one block, the
return statement and closing curly brace were added "inline".
2024-11-05 19:21:45 +01:00
..
.vscode webapp: Migrated from vue-cli to vite 2022-10-17 19:26:04 +02:00
public Updated timezone config 2024-04-24 22:33:37 +02:00
src webapp: fix inverter selection button breaking 2024-11-03 20:35:14 +01:00
.gitignore make vite proxy target easily configurable 2023-08-09 16:58:58 +02:00
.prettierrc.json webapp: Add Autoformatter 2024-07-05 21:32:26 +02:00
env.d.ts webapp: Update dependencies 2024-10-08 18:15:03 +02:00
eslint.config.js webapp: Fix eslint issues 2024-10-05 23:33:23 +02:00
index.html Feature: High resolution Icon and PWA (Progressive Web App) functionality 2023-11-23 22:32:01 +01:00
package.json webapp: Update dependencies 2024-11-01 21:52:55 +01:00
README.md Fixed documentation for webapp dev mode 2024-08-05 18:31:31 +02:00
tsconfig.config.json webapp: Upgrade tsconfig node18 to node22 2024-09-16 19:13:17 +02:00
tsconfig.json webapp: Upgrade tsconfig node18 to node22 2024-09-16 19:13:17 +02:00
vite.config.ts keep console.log() when serving webapp 2024-11-05 19:21:45 +01:00
yarn.lock webapp: Update dependencies 2024-11-01 21:52:55 +01:00

OpenDTU web frontend

You can run the webapp locally with yarn dev. If you enter the IP of your ESP in the vite.user.ts beforehand (template can be found in vite.config.ts), all api requests will even be proxied to the real ESP. Then you can develop the webapp as if it were running directly on the ESP. The yarn dev also supports hot reload, i.e. as soon as you save a vue file, it is automatically reloaded in the browser.

Project Setup

yarn install

Compile and Hot-Reload for Development

yarn dev

Type-Check, Compile and Minify for Production

yarn build

Lint with ESLint

yarn lint