build(ui): migrated to pnpm and vite

This commit is contained in:
Marvin Zhang
2022-12-03 21:36:48 +08:00
parent 1fd115c883
commit 34d9c6fc26
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 ADD . /app
WORKDIR /app WORKDIR /app
RUN rm /app/.npmrc RUN rm /app/.npmrc
# install frontend # 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 FROM alpine:3.14

View File

@@ -4,10 +4,7 @@
"scripts": { "scripts": {
"serve": "vite --debug", "serve": "vite --debug",
"serve:dist": "serve dist", "serve:dist": "serve dist",
"build": "vite build", "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"
}, },
"author": { "author": {
"name": "Marvin Zhang", "name": "Marvin Zhang",