mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
build(ui): migrated to pnpm and vite
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user