提交 a13848b6 编写于 作者: fxy060608's avatar fxy060608

wip(uts): add ios tips

上级 ff031e6e
......@@ -7,6 +7,7 @@ declare namespace NodeJS {
NODE_ENV: 'production' | 'development' | 'test'
UNI_NODE_ENV: 'production' | 'development' | 'test'
UNI_PLATFORM: UniApp.PLATFORM
UNI_APP_PLATFORM: 'android' | 'ios'
UNI_SUB_PLATFORM: 'quickapp-webview-huawei' | 'quickapp-webview-union'
UNI_UTS_PLATFORM: 'app-android' | 'app-ios' | 'web' | UniApp.PLATFORM
......
......@@ -25,4 +25,6 @@ export default {
'mp.component.args[1]': '{0} requires two parameters',
'mp.360.unsupported': '360 is unsupported',
'file.notfound': '{file} is not found',
'uts.ios.tips':
'The project uses the uts plug-in. After the uts plug-in code is modified, the [Custom playground native runner](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground) needs to be regenerated to take effect',
} as const
......@@ -25,4 +25,6 @@ export default {
'mp.component.args[1]': '{0}需要两个参数',
'mp.360.unsupported': 'vue3暂不支持360小程序',
'file.notfound': '{file} 文件不存在',
'uts.ios.tips':
'项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效',
} as const
......@@ -93,6 +93,8 @@ export function uniUtsV1Plugin(): Plugin {
])
}
}
} else if (process.env.UNI_UTS_PLATFORM === 'app-ios') {
process.env.UNI_APP_IOS_UTS = 'true'
}
}
return code
......
......@@ -37,6 +37,10 @@ export async function runDev(options: CliOptions & ServerOptions) {
event.result.close()
if (isFirstEnd) {
// 首次全量同步
// iOS 平台使用了 UTS
if (process.env.UNI_APP_IOS_UTS) {
console.log(`\u200B` + M['uts.ios.tips'] + `\u200B`)
}
return (
(isFirstEnd = false),
output('log', M['dev.watching.end']),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册