代码提交

This commit is contained in:
luozhun 2024-11-21 10:12:05 +08:00
parent a2819042df
commit 67d19a0885
2 changed files with 10 additions and 10 deletions

View File

@ -32,13 +32,13 @@ pipeline {
remote.password = "${password}" remote.password = "${password}"
} }
sshCommand remote: remote, command: 'pwd=$(pwd) echo "ssh连接成功当前工作目录$(pwd)"' sshCommand remote: remote, command: 'pwd=$(pwd) echo "ssh连接成功当前工作目录$(pwd)"'
sshCommand remote: remote, command: 'echo "删除superManagement..."' sshCommand remote: remote, command: 'echo "删除super_management..."'
sshRemove remote: remote, path: '/home/app/apps/1panel/apps/openresty/openresty/www/sites/policeSecurityServer/index/superManagement' sshRemove remote: remote, path: '/home/app/apps/1panel/apps/openresty/openresty/www/sites/policeSecurityServer/index/super_management'
sshCommand remote: remote, command: 'echo "删除superManagement成功!"' sshCommand remote: remote, command: 'echo "删除super_management成功!"'
sshCommand remote: remote, command: 'echo "将构建的superManagement发送到服务器..."' sshCommand remote: remote, command: 'echo "将构建的super_management发送到服务器..."'
sshPut remote: remote, from: '/var/jenkins_home/workspace/警保联动-超级后台/superManagement/superManagement', into: '/home/app/apps/1panel/apps/openresty/openresty/www/sites/policeSecurityServer/index' sshPut remote: remote, from: '/var/jenkins_home/workspace/警保联动-超级后台/superManagement/super_management', into: '/home/app/apps/1panel/apps/openresty/openresty/www/sites/policeSecurityServer/index'
sshCommand remote: remote, command: 'echo "superManagement发送成功!"' sshCommand remote: remote, command: 'echo "super_management发送成功!"'
} }
} }
} }

View File

@ -4,7 +4,7 @@ import Components from 'unplugin-vue-components/vite';
import {AntDesignVueResolver} from 'unplugin-vue-components/resolvers'; import {AntDesignVueResolver} from 'unplugin-vue-components/resolvers';
import * as path from "node:path"; import * as path from "node:path";
import vueJsx from '@vitejs/plugin-vue-jsx' import vueJsx from '@vitejs/plugin-vue-jsx'
import {appName, version, name} from './package.json' import {appName, version, name as moduleName} from './package.json'
const pathSrc = path.resolve(__dirname, 'src'); const pathSrc = path.resolve(__dirname, 'src');
@ -15,12 +15,12 @@ export default defineConfig(({mode}) => {
define: { define: {
__APP_ENV: JSON.stringify(env), __APP_ENV: JSON.stringify(env),
__APP_INFO: JSON.stringify({ __APP_INFO: JSON.stringify({
moduleName: name, moduleName,
appName, appName,
version version
}) })
}, },
base: `/${name}/`, base: `/${moduleName}/`,
plugins: [ plugins: [
vue(), vue(),
vueJsx(), vueJsx(),
@ -49,7 +49,7 @@ export default defineConfig(({mode}) => {
} }
}, },
build: { build: {
outDir: env['VITE_APP_MODULE_NAME'], outDir: moduleName,
target: 'modules', target: 'modules',
chunkSizeWarningLimit: 1500, chunkSizeWarningLimit: 1500,
minify: 'terser', minify: 'terser',