feat(V2-1a): Monorepo 구조 전환 — apps/desktop으로 V1 이동

- npm workspaces 루트 (apps/*, packages/*) 세팅
- V1 전체를 apps/desktop/으로 git mv (src, resources, tests, sidecar,
  scripts, electron.vite.config.ts, electron-builder.yml, vitest.config.ts,
  tsconfig.node.json, tsconfig.web.json)
- apps/desktop/package.json 신규 (name=@d3ro/desktop)
- productName: 'd3ro-voice' 명시 — app.getName()을 고정하여 userData 경로
  %APPDATA%\d3ro-voice\ 그대로 유지 (기존 DB/설정 연속성 보장)
- 루트 package.json을 workspace 루트로 재구성, 공통 devDep만 유지
  (typescript, eslint, prettier)
- turbo.json, tsconfig.base.json 추가 (Turborepo 자체 설치는 별도 sub-phase)
- memory/project_status.md 생성 (규칙 13)

검증:
- npm run typecheck 통과
- npm run build 통과 (electron-vite main+preload+renderer)
- npm run dev 실제 실행 → DB/핫키/Ollama 자동 실행 모두 정상
This commit is contained in:
yunchan8804 2026-04-08 14:04:41 +09:00
parent 3a160b9032
commit 45a580878a
178 changed files with 214 additions and 0 deletions

View file

@ -1,62 +0,0 @@
appId: com.d3ro.voice
productName: D3RO Voice
copyright: Copyright © 2026 D3RO
directories:
buildResources: resources
output: release/${version}
files:
- out/**/*
- "!out/**/*.map"
# native 모듈은 asar 외부에 배치
asarUnpack:
- "node_modules/better-sqlite3/**"
- "node_modules/uiohook-napi/**"
- "node_modules/@nut-tree-fork/**"
win:
target:
- target: nsis
arch:
- x64
icon: resources/icons/icon.ico
nsis:
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true
createDesktopShortcut: true
createStartMenuShortcut: true
shortcutName: D3RO Voice
deleteAppDataOnUninstall: false
# 번들 리소스 (앱 외부, resources/ 디렉토리에 배치)
extraResources:
# SoX Windows 바이너리 (~5MB)
- from: resources/sox/
to: sox/
filter:
- "**/*"
# Python sidecar (PyInstaller 빌드 결과, ~200MB)
# 빌드 전: python scripts/build-sidecar.py
- from: sidecar-dist/sidecar/
to: sidecar/
filter:
- "**/*"
# 효과음 파일
- from: resources/sounds/
to: sounds/
filter:
- "*.wav"
# 앱 아이콘
- from: resources/icons/
to: icons/
filter:
- "**/*"
npmRebuild: true