Pindahkan konten architecture dan conventions ke docs/ARCHITECTURE.md dan docs/CONVENTIONS.md, lalu referensikan via @path di CLAUDE.md agar file tetap ramping. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
1010 B
Markdown
14 lines
1010 B
Markdown
# Key Conventions
|
|
|
|
**Imports:** Use `@/` alias (maps to project root, configured in `tsconfig.json`). Never use relative paths like `../../`.
|
|
|
|
**Utility functions:** Prefixed with `fun_` (e.g., `lib/fun_stringToDate.ts`, `lib/fun_validateName.ts`).
|
|
|
|
**Styling:** Use theme-aware colors from `useTheme()` hook. Global `StyleSheet` definitions live in `constants/Styles.ts`. Color tokens are in `constants/Colors.ts` with explicit `light`/`dark` variants.
|
|
|
|
**Component structure:** Feature-specific subdirectories under `components/` (e.g., `components/announcement/`) typically contain a header component alongside list/card components for that feature.
|
|
|
|
**Environment config:** All env vars are declared in `.env`, exposed through `app.config.js` `extra` field, and accessed via `Constants.expoConfig.extra.*` or the `constants/ConstEnv.ts` wrapper.
|
|
|
|
**EAS builds:** Profiles are `development`, `preview`, and `production` in `eas.json`. Production builds auto-increment the app version via the `bump` script.
|