前端更改为yarn编译

This commit is contained in:
bjdgyc 2022-04-07 15:58:26 +08:00
parent 2b580067a2
commit 7a92aa8dff
6 changed files with 8673 additions and 12216 deletions

View File

@ -2,12 +2,12 @@
FROM node:lts-alpine as builder_node
WORKDIR /web
COPY ./web /web
RUN npm install --registry=https://registry.npm.taobao.org \
&& npm run build \
RUN yarn install \
&& yarn run build \
&& ls /web/ui
# server
FROM golang:1.16-alpine as builder_golang
FROM golang:1.17-alpine as builder_golang
#TODO 本地打包时使用镜像
ENV GOPROXY=https://goproxy.io
ENV GOOS=linux

View File

@ -46,7 +46,7 @@ AnyLink 服务端仅在 CentOS 7、Ubuntu 18.04 测试通过,如需要安装
### 自行编译安装
> 需要提前安装好 golang >= 1.16 和 nodejs >= 14.x
> 需要提前安装好 golang >= 1.17 和 nodejs >= 14.x 和 yarn >= v1.22.x
```shell
git clone https://github.com/bjdgyc/anylink.git

View File

@ -16,9 +16,13 @@ echo "编译前端项目"
cd $cpath/web
#国内可替换源加快速度
#npx browserslist@latest --update-db
npm install --registry=https://registry.npm.taobao.org
#npm install --registry=https://registry.npm.taobao.org
#npm install
npm run build
#npm run build
yarn install
yarn run build
RETVAL $?
echo "编译二进制文件"

View File

@ -2,6 +2,6 @@ package base
const (
APP_NAME = "AnyLink"
// 修复前端bug
APP_VER = "0.7.3"
// 修复 CVE-2016-2183
APP_VER = "0.7.4"
)

12208
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

8661
web/yarn.lock Normal file

File diff suppressed because it is too large Load Diff