From fa9d0a2ec85e12764983772d163b1c923c4345df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Fri, 16 Jun 2023 15:31:02 +0000 Subject: [PATCH] Migrate ui to Vite and npm --- Makefile | 6 +- ui/.gitignore | 2 - ui/README.md | 31 +- ui/{public => }/index.html | 9 +- ui/package-lock.json | 6709 ++++++++++ ui/package.json | 21 +- ui/src/common/global.scss | 10 +- ui/src/common/style.scss | 4 +- ui/src/router.ts | 2 +- ui/src/store/index.ts | 2 +- ui/vite.config.js | 39 + ui/vue.config.js | 13 - ui/yarn.lock | 10417 ---------------- .../en/docs/development/environment.md | 4 +- 14 files changed, 6782 insertions(+), 10487 deletions(-) rename ui/{public => }/index.html (58%) create mode 100644 ui/package-lock.json create mode 100644 ui/vite.config.js delete mode 100644 ui/yarn.lock diff --git a/Makefile b/Makefile index 0edee9ab..fb682b63 100644 --- a/Makefile +++ b/Makefile @@ -106,11 +106,11 @@ website: $(HUGO) hugo serve --source=website/ ui: - yarn --cwd ui install - yarn --cwd ui build + npm --prefix=ui install + npm --prefix=ui run build ui-dev: - yarn --cwd ui serve + npm --prefix=ui run dev ui-client: @rm -rf $(CURDIR)/ui/src/client diff --git a/ui/.gitignore b/ui/.gitignore index f6c6c161..3261cfc7 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -12,8 +12,6 @@ node_modules # Log files npm-debug.log* -yarn-debug.log* -yarn-error.log* # Editor directories and files .idea diff --git a/ui/README.md b/ui/README.md index 1ec94284..8ab0a205 100644 --- a/ui/README.md +++ b/ui/README.md @@ -1,34 +1,13 @@ # ui ## Project setup -``` -yarn install -``` -### Compiles and hot-reloads for development -``` -yarn run serve -``` - -### Compiles and minifies for production -``` -yarn run build -``` + npm install -### Run your tests -``` -yarn run test -``` +### Compiles and hot-reloads for development -### Lints and fixes files -``` -yarn run lint -``` + npm run dev -### Run your unit tests -``` -yarn run test:unit -``` +### Compiles and minifies for production -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). + npm run build diff --git a/ui/public/index.html b/ui/index.html similarity index 58% rename from ui/public/index.html rename to ui/index.html index c960401b..03423835 100644 --- a/ui/public/index.html +++ b/ui/index.html @@ -4,11 +4,12 @@ - - - - + + + + Enduro +