mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-04-02 23:15:59 +00:00
3
.github/workflows/dev-daily-fixed.yml
vendored
3
.github/workflows/dev-daily-fixed.yml
vendored
@@ -84,7 +84,10 @@ jobs:
|
||||
npx vite build
|
||||
|
||||
- name: Package macOS arm64 dev artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
export ELECTRON_BUILDER_BINARIES_MIRROR="https://github.com/electron-userland/electron-builder-binaries/releases/download/"
|
||||
echo "Using ELECTRON_BUILDER_BINARIES_MIRROR=$ELECTRON_BUILDER_BINARIES_MIRROR"
|
||||
npx electron-builder --mac dmg --arm64 --publish never '--config.publish.channel=dev' '--config.artifactName=${productName}-dev-arm64.${ext}'
|
||||
|
||||
- name: Upload macOS arm64 assets to fixed release
|
||||
|
||||
3
.github/workflows/preview-nightly-main.yml
vendored
3
.github/workflows/preview-nightly-main.yml
vendored
@@ -92,7 +92,10 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||
shell: bash
|
||||
run: |
|
||||
export ELECTRON_BUILDER_BINARIES_MIRROR="https://github.com/electron-userland/electron-builder-binaries/releases/download/"
|
||||
echo "Using ELECTRON_BUILDER_BINARIES_MIRROR=$ELECTRON_BUILDER_BINARIES_MIRROR"
|
||||
npx electron-builder --mac dmg --arm64 --publish always '--config.publish.releaseType=prerelease' '--config.publish.channel=preview'
|
||||
|
||||
preview-linux:
|
||||
|
||||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -47,7 +47,10 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||
shell: bash
|
||||
run: |
|
||||
export ELECTRON_BUILDER_BINARIES_MIRROR="https://github.com/electron-userland/electron-builder-binaries/releases/download/"
|
||||
echo "Using ELECTRON_BUILDER_BINARIES_MIRROR=$ELECTRON_BUILDER_BINARIES_MIRROR"
|
||||
npx electron-builder --mac dmg --arm64 --publish always
|
||||
|
||||
- name: Inject minimumVersion into latest yml
|
||||
|
||||
4
.npmrc
4
.npmrc
@@ -1,3 +1 @@
|
||||
registry=https://registry.npmmirror.com
|
||||
electron-mirror=https://npmmirror.com/mirrors/electron/
|
||||
electron-builder-binaries-mirror=https://github.com/electron-userland/electron-builder-binaries/releases/download/
|
||||
registry=https://registry.npmjs.org
|
||||
|
||||
2230
package-lock.json
generated
2230
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -193,11 +193,6 @@
|
||||
"overrides": {
|
||||
"picomatch": "^4.0.4",
|
||||
"tar": "^7.5.13",
|
||||
"immutable": "^5.1.5",
|
||||
"ajv": "^8.17.1",
|
||||
"@develar/schema-utils": {
|
||||
"ajv": "^6.12.6",
|
||||
"ajv-keywords": "^3.5.2"
|
||||
}
|
||||
"immutable": "^5.1.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,41 @@ export default defineConfig({
|
||||
strictPort: false // 如果3000被占用,自动尝试下一个
|
||||
},
|
||||
build: {
|
||||
chunkSizeWarningLimit: 900,
|
||||
commonjsOptions: {
|
||||
ignoreDynamicRequires: true
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (!id.includes('node_modules')) return
|
||||
|
||||
if (id.includes('/react/') || id.includes('/react-dom/') || id.includes('/react-router')) {
|
||||
return 'vendor-react'
|
||||
}
|
||||
|
||||
if (id.includes('/echarts') || id.includes('/echarts-for-react')) {
|
||||
return 'vendor-echarts'
|
||||
}
|
||||
|
||||
if (
|
||||
id.includes('/react-markdown') ||
|
||||
id.includes('/remark-gfm') ||
|
||||
id.includes('/mdast-') ||
|
||||
id.includes('/micromark-') ||
|
||||
id.includes('/unified') ||
|
||||
id.includes('/vfile')
|
||||
) {
|
||||
return 'vendor-markdown'
|
||||
}
|
||||
|
||||
if (id.includes('/jszip') || id.includes('/exceljs')) {
|
||||
return 'vendor-export'
|
||||
}
|
||||
|
||||
return 'vendor-misc'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
|
||||
Reference in New Issue
Block a user