Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df6ce133dd | ||
|
|
8c33135f4c | ||
|
|
f067c95d93 | ||
|
|
8a48b2cf02 | ||
|
|
2fac0c91f6 | ||
|
|
6ccb9f8cd4 |
No files matched your search
+5
-3
@@ -36,16 +36,18 @@ steps:
|
||||
- ls -lh "/hzdyjs-releases/${DRONE_TAG}/backend-${DRONE_TAG}.jar"
|
||||
|
||||
- name: package-web
|
||||
# 无 package-lock(被 gitignore);Node20 需 --legacy-peer-deps 规避 npm edgesOut
|
||||
image: node:20-bookworm
|
||||
environment:
|
||||
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
|
||||
commands:
|
||||
- set -eu
|
||||
- echo "==> web tag=${DRONE_TAG}"
|
||||
- echo "==> web tag=${DRONE_TAG} npm=$(npm -v) node=$(node -v)"
|
||||
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
|
||||
- cd web
|
||||
- npm ci
|
||||
- npm run build:prod
|
||||
- npm install --legacy-peer-deps --no-audit --no-fund
|
||||
# 本前端生产构建实测需约 6G+ 堆;测试机靠扩容 swap(/swap-hzdyjs)硬扛
|
||||
- node --max-old-space-size=6144 node_modules/vite/bin/vite.js build --mode production
|
||||
- test -f dist/index.html
|
||||
- tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" .
|
||||
- ls -lh "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz"
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
源文件:`backend/ruoyi-admin/target/ruoyi-admin.jar` → `backend-<tag>.jar`
|
||||
|
||||
2. **web**(`node:20-bookworm`)
|
||||
`npm ci` → `npm run build:prod`
|
||||
`npm install` → `npm run build:prod`
|
||||
(`web/package-lock.json` 被 gitignore,仓库无 lock,不能用 `npm ci`)
|
||||
打包 `web/dist` → `web-<tag>.tar.gz`
|
||||
|
||||
3. **mobile**(`node:20-bookworm` + corepack/pnpm)
|
||||
|
||||
@@ -535,9 +535,9 @@ import {
|
||||
updateClassStatus,
|
||||
updateClassStatusBatch,
|
||||
updateClassCampusBatch
|
||||
} from '@/api/xg/xsjcxx/classmsg/classMsg';
|
||||
import { listColleges, collegeTree, listMajorsByCollegeId } from '@/api/xg/xsjcxx/classmsg/college';
|
||||
import { ClassMsgVO, ClassMsgQuery, ClassMsgForm, SysDeptVo } from '@/api/xg/xsjcxx/classmsg/types';
|
||||
} from '@/api/xg/xsjcxx/classMsg/classMsg';
|
||||
import { listColleges, collegeTree, listMajorsByCollegeId } from '@/api/xg/xsjcxx/classMsg/college';
|
||||
import { ClassMsgVO, ClassMsgQuery, ClassMsgForm, SysDeptVo } from '@/api/xg/xsjcxx/classMsg/types';
|
||||
import { listDormCampus } from '@/api/xg/xgss/xqxx/dormCampus';
|
||||
import type { DormCampusVO } from '@/api/xg/xgss/xqxx/dormCampus/types';
|
||||
import { ComponentInternalInstance, ref, reactive, toRefs, onMounted, getCurrentInstance, watch } from 'vue';
|
||||
|
||||
@@ -239,8 +239,8 @@
|
||||
</template>
|
||||
|
||||
<script setup name="MajorMsg" lang="ts">
|
||||
import { listMajor, getMajor, delMajor, addMajor, updateMajor, getCollegeTree, previewMajorMerge, mergeMajors } from '@/api/xg/xsjcxx/classmsg/majormsg';
|
||||
import { MajorVO, MajorQuery, MajorForm, CollegeTreeNode, MajorMergePreviewVO } from '@/api/xg/xsjcxx/classmsg/majormsg/types';
|
||||
import { listMajor, getMajor, delMajor, addMajor, updateMajor, getCollegeTree, previewMajorMerge, mergeMajors } from '@/api/xg/xsjcxx/classMsg/majormsg';
|
||||
import { MajorVO, MajorQuery, MajorForm, CollegeTreeNode, MajorMergePreviewVO } from '@/api/xg/xsjcxx/classMsg/majormsg/types';
|
||||
import { ComponentInternalInstance, ref, reactive, toRefs, onMounted, getCurrentInstance } from 'vue';
|
||||
import type { FormInstance as ElFormInstance } from 'element-plus';
|
||||
import type { ElTree } from 'element-plus';
|
||||
|
||||
Reference in new issue
Block a user