测试,修复了几处问题

This commit is contained in:
pqcqaq 2024-11-29 13:46:47 +08:00
parent 17e074a06c
commit a88cb606b7
3 changed files with 8 additions and 7 deletions

View File

@ -61,6 +61,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i
}
const serverInitScript = isDev ? "cross-env NODE_ENV=development cross-env OAK_PLATFORM=server node scripts/initServer.js" : "cross-env OAK_PLATFORM=server node scripts/initServer.js";
const serverStartScript = isDev ? "cross-env NODE_ENV=development cross-env OAK_PLATFORM=server node scripts/startServer.js" : "cross-env OAK_PLATFORM=server node scripts/startServer.js";
const serverStartWatchScript = isDev ? "cross-env NODE_ENV=development cross-env OAK_PLATFORM=server node --stack-size=65500 scripts/watchServer.js" : "cross-env OAK_PLATFORM=server node --stack-size=65500 scripts/watchServer.js";
return `{
"name": "${name}",
"version": "${version}",
@ -79,8 +80,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i
"build-analyze:mp:staging": "${cliBinName} build --target mp --mode staging --analyze",
"build:mp": "${cliBinName} build --target mp --mode production",
"build-analyze:mp": "${cliBinName} build --target mp --mode production --analyze",
"build:watch": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && npm run copy-config-json && npm run watch:server",
"watch:server": "node --stack-size=65500 scripts/watchServer.js",
"build:watch": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && npm run copy-config-json && npm run server:start:watch",
"start:web": "${cliBinName} start --target web --mode development --devMode frontend",
"start:web:server": "${cliBinName} start --target web --mode development",
"start:native": "${cliBinName} start --target rn --mode development --devMode frontend",
@ -98,6 +98,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i
"run:android": "oak-cli run -p android",
"server:init": "${serverInitScript}",
"server:start": "${serverStartScript}",
"server:start:watch": "${serverStartWatchScript}",
"postinstall": "npm run make:dep"
},
"keywords": [],
@ -268,7 +269,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i
"webpack-manifest-plugin": "^4.0.2",
"workbox-webpack-plugin": "^6.4.1",
"chokidar": "^4.0.1",
"module-alias": "^2.2.3",
"module-alias": "^2.2.3"
},
"browserslist": {
"production": [

View File

@ -277,7 +277,7 @@ export function packageJsonContent({
"webpack-manifest-plugin": "^4.0.2",
"workbox-webpack-plugin": "^6.4.1",
"chokidar": "^4.0.1",
"module-alias": "^2.2.3",
"module-alias": "^2.2.3"
},
"browserslist": {
"production": [

View File

@ -95,9 +95,9 @@ export const system: System[] = [
description: '测试系统',
config: {
Map: {
amap: {
webApiKey: '',
},
// amap: {
// webApiKey: '',
// },
},
Cos: {
qiniu: {