build(ui): migrated to pnpm and vite

This commit is contained in:
Marvin Zhang
2022-12-03 21:36:48 +08:00
parent 1d7f2aa22c
commit b175a337e6
2 changed files with 5 additions and 6 deletions

View File

@@ -1,11 +1,13 @@
FROM node:12 AS build
FROM node:14 AS build
ADD . /app
WORKDIR /app
RUN rm /app/.npmrc
# install frontend
RUN yarn install && yarn run build:docker
RUN npm i -g pnpm
RUN pnpm install
RUN pnpm run build
FROM alpine:3.14

View File

@@ -4,10 +4,7 @@
"scripts": {
"serve": "vite --debug",
"serve:dist": "serve dist",
"build": "vite build",
"build:development": "vue-cli-service build --mode development",
"build:docker": "vue-cli-service build --mode docker",
"build:analyze": "vue-cli-service build --mode analyze"
"build": "vite build"
},
"author": {
"name": "Marvin Zhang",