测试,修复了几处问题
This commit is contained in:
parent
17e074a06c
commit
a88cb606b7
|
|
@ -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 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 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 `{
|
return `{
|
||||||
"name": "${name}",
|
"name": "${name}",
|
||||||
"version": "${version}",
|
"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-analyze:mp:staging": "${cliBinName} build --target mp --mode staging --analyze",
|
||||||
"build:mp": "${cliBinName} build --target mp --mode production",
|
"build:mp": "${cliBinName} build --target mp --mode production",
|
||||||
"build-analyze:mp": "${cliBinName} build --target mp --mode production --analyze",
|
"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",
|
"build:watch": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && npm run copy-config-json && npm run server:start:watch",
|
||||||
"watch:server": "node --stack-size=65500 scripts/watchServer.js",
|
|
||||||
"start:web": "${cliBinName} start --target web --mode development --devMode frontend",
|
"start:web": "${cliBinName} start --target web --mode development --devMode frontend",
|
||||||
"start:web:server": "${cliBinName} start --target web --mode development",
|
"start:web:server": "${cliBinName} start --target web --mode development",
|
||||||
"start:native": "${cliBinName} start --target rn --mode development --devMode frontend",
|
"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",
|
"run:android": "oak-cli run -p android",
|
||||||
"server:init": "${serverInitScript}",
|
"server:init": "${serverInitScript}",
|
||||||
"server:start": "${serverStartScript}",
|
"server:start": "${serverStartScript}",
|
||||||
|
"server:start:watch": "${serverStartWatchScript}",
|
||||||
"postinstall": "npm run make:dep"
|
"postinstall": "npm run make:dep"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|
@ -268,7 +269,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i
|
||||||
"webpack-manifest-plugin": "^4.0.2",
|
"webpack-manifest-plugin": "^4.0.2",
|
||||||
"workbox-webpack-plugin": "^6.4.1",
|
"workbox-webpack-plugin": "^6.4.1",
|
||||||
"chokidar": "^4.0.1",
|
"chokidar": "^4.0.1",
|
||||||
"module-alias": "^2.2.3",
|
"module-alias": "^2.2.3"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ export function packageJsonContent({
|
||||||
"webpack-manifest-plugin": "^4.0.2",
|
"webpack-manifest-plugin": "^4.0.2",
|
||||||
"workbox-webpack-plugin": "^6.4.1",
|
"workbox-webpack-plugin": "^6.4.1",
|
||||||
"chokidar": "^4.0.1",
|
"chokidar": "^4.0.1",
|
||||||
"module-alias": "^2.2.3",
|
"module-alias": "^2.2.3"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
|
||||||
|
|
@ -95,9 +95,9 @@ export const system: System[] = [
|
||||||
description: '测试系统',
|
description: '测试系统',
|
||||||
config: {
|
config: {
|
||||||
Map: {
|
Map: {
|
||||||
amap: {
|
// amap: {
|
||||||
webApiKey: '',
|
// webApiKey: '',
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
Cos: {
|
Cos: {
|
||||||
qiniu: {
|
qiniu: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue