👷 添加 CI ,GitHub Action 增加各种开发环境构建

This commit is contained in:
lbw 2023-09-10 15:11:46 +08:00
parent 999704dc61
commit 0441be2e71
4 changed files with 42 additions and 11702 deletions

38
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,38 @@
name: build
on:
push:
branches:
- master
- dev
jobs:
task:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest, centos-latest]
node-version: [16.x, 18.x]
npm-client: [npm, yarn, pnpm]
steps:
- uses: pnpm/action-setup@v2
if: matrix.npm-client == 'pnpm'
name: Install pnpm
with:
version: 7
run_install: false
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: ${{ matrix.npm-client }} install
- name: Build
run: ${{ matrix.npm-client }} run build

8715
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,8 @@
"license": "Apache-2.0",
"scripts": {
"dev": "vite --force",
"build": "NODE_OPTIONS=--max-old-space-size=4096 vite build",
"build:docker": "NODE_OPTIONS=--max-old-space-size=4096 vite build --outDir ./docker/dist/",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build",
"build:docker": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --outDir ./docker/dist/",
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
"prettier": "prettier --write ."
},
@ -38,7 +38,7 @@
"vue": "^3.2.47",
"vue-clipboard3": "^2.0.0",
"vue-echarts": "^6.2.3",
"vue-i18n": "^9.2.2",
"vue-i18n": "9.2.2",
"vue-router": "^4.1.6",
"vue3-ts-jsoneditor": "2.8.6",
"vuedraggable": "^4.1.0"
@ -51,6 +51,7 @@
"@typescript-eslint/parser": "^5.53.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/compiler-sfc": "^3.2.47",
"cross-env": "7.0.3",
"consola": "^2.15.3",
"eslint": "^8.34.0",
"eslint-plugin-vue": "^9.9.0",

2984
yarn.lock

File diff suppressed because it is too large Load Diff