refactor: 只保留 Web,移除 Capacitor 原生壳
删除 android/、ios/ 两个 Capacitor 原生工程与 capacitor.config.ts、 ionic.config.json,以及 scripts/android、scripts/ios.sh 构建脚本; 根与 apps/web 的 @capacitor/* 依赖和相关 npm scripts 一并移除。 Web 侧去掉原生分支:登录只走云乐坊容器授权面板或顶层重定向, 暗色模式不再改原生状态栏,移除 Android 物理返回键处理。 保留 @nuxtjs/ionic(Web UI 框架)、云乐坊 window.ylf 桥接与 PWA。 决策记录见 docs/decisions/0004-web-only.md。
This commit is contained in:
@@ -1 +0,0 @@
|
||||
npx cap build android
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
LIP=$(ipconfig getifaddr en0)
|
||||
|
||||
echo "🍦 Starting local development to android device - ensure local dev server is running already"
|
||||
echo "🏗️ Type checking and building for development..."
|
||||
pnpm run build:dev
|
||||
echo "🔃 Capacitor installation, podfile installation, sync and copy to app distribution folders..."
|
||||
npx @ionic/cli capacitor sync android --no-build
|
||||
echo "🏃 Select an Android device to run the build at local ip address ${LIP} on..."
|
||||
eval "npx @ionic/cli capacitor run android --livereload-url=http://${LIP}:3000 --external --mode development"
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cpSync, existsSync, rmSync } from 'node:fs'
|
||||
import { resolve } from 'node:path'
|
||||
|
||||
// Deploy targets (Netlify, Vercel, Cloudflare Pages, EdgeOne, Docker, Capacitor) read `dist/`
|
||||
// Deploy targets (Netlify, Vercel, Cloudflare Pages, EdgeOne, Docker) read `dist/`
|
||||
// at the repo root, so mirror the web app's static output there.
|
||||
const root = resolve(import.meta.dirname, '..')
|
||||
const webDist = resolve(root, 'apps/web/dist')
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
LIP=$(ipconfig getifaddr en0)
|
||||
|
||||
echo "🍦 Starting local development to ios device - ensure local dev server is running already"
|
||||
echo "🏗️ Type checking and building for development..."
|
||||
pnpm run build:dev
|
||||
echo "🔃 Capacitor installation, podfile installation, sync and copy to app distribution folders..."
|
||||
npx @ionic/cli capacitor sync ios --no-build
|
||||
echo "🏃 Select an iOS device to run the build at local ip address ${LIP} on..."
|
||||
eval "npx @ionic/cli capacitor run ios --livereload-url=http://${LIP}:3000 --external --mode development"
|
||||
@@ -34,8 +34,8 @@ try {
|
||||
renameSync(dependency, previous)
|
||||
replaced = true
|
||||
symlinkSync(join(temporary, 'package'), dependency, 'dir')
|
||||
runCookTool('vitest', ['run', 'test/acquisition.test.ts', 'test/yunlefunAuthAdapter.test.ts', 'test/nativeSso.test.ts', 'test/yunlefunAuth.test.ts', 'test/yunlefunSsoConfig.test.ts'])
|
||||
runCookTool('eslint', ['apps/web/app/utils/acquisition.ts', 'apps/web/app/plugins/acquisition.client.ts', 'apps/web/app/plugins/yunlefun-auth.client.ts', 'apps/web/app/adapters/yunlefunAuth.ts', 'apps/web/app/utils/nativeSso.ts', 'test/acquisition.test.ts', 'test/yunlefunAuthAdapter.test.ts', 'test/nativeSso.test.ts', 'scripts/qa/verify-acquisition-sdk.mjs'])
|
||||
runCookTool('vitest', ['run', 'test/acquisition.test.ts', 'test/yunlefunAuthAdapter.test.ts', 'test/yunlefunAuth.test.ts', 'test/yunlefunSsoConfig.test.ts'])
|
||||
runCookTool('eslint', ['apps/web/app/utils/acquisition.ts', 'apps/web/app/plugins/acquisition.client.ts', 'apps/web/app/plugins/yunlefun-auth.client.ts', 'apps/web/app/adapters/yunlefunAuth.ts', 'test/acquisition.test.ts', 'test/yunlefunAuthAdapter.test.ts', 'test/yunlefunAuth.test.ts', 'scripts/qa/verify-acquisition-sdk.mjs'])
|
||||
if (process.argv.includes('--build'))
|
||||
runCookTool('nuxt', ['build'])
|
||||
if (process.argv.includes('--typecheck'))
|
||||
|
||||
Reference in New Issue
Block a user