From e3b7dd8241ef8af7be0a4be658c3fd8af82a1f45 Mon Sep 17 00:00:00 2001 From: Uruk Date: Thu, 9 Oct 2025 13:57:07 +0200 Subject: [PATCH] docs(copilot): enhance instructions with Bun requirements and development standards Expands Copilot instructions to enforce critical Bun-first package management workflow and prevent usage of npm/yarn/npx commands. Adds comprehensive sections covering: - Runtime and tooling stack details with Bun as primary runtime - Explicit package management commands to prevent npm/yarn usage - Performance optimization guidelines leveraging Bun's capabilities - Testing approach using Bun's built-in test runner - Enhanced coding standards and API integration patterns - Cross-platform development considerations for mobile and TV Improves developer onboarding by providing clearer context about project architecture, offline capabilities, and Chromecast support in the overview. --- .github/copilot-instructions.md | 98 ++++++++++++++++++++++----------- 1 file changed, 67 insertions(+), 31 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c15d5500..1f63d5f3 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -3,58 +3,94 @@ ## Project Overview Streamyfin is a cross-platform Jellyfin video streaming client built with Expo (React Native). -It supports mobile (iOS/Android) and TV platforms, and integrates with Jellyfin and Jellyseerr APIs. +It supports mobile (iOS/Android) and TV platforms, integrates with Jellyfin and Jellyseerr APIs, +and provides seamless media streaming with offline capabilities and Chromecast support. ## Main Technologies -- React Native (Expo) -- TypeScript -- React Query -- Jotai (state management) -- Jellyfin SDK (TypeScript) -- BiomeJS (code formatting/linting) -- EAS (Expo Application Services) -- Shell scripting (for automation) -- GitHub Actions (CI/CD) +- **Runtime**: Bun (JavaScript/TypeScript execution) +- **Framework**: React Native (Expo) +- **Language**: TypeScript (strict mode) +- **State Management**: Jotai (global state) + React Query (server state) +- **API SDK**: Jellyfin SDK (TypeScript) +- **Navigation**: Expo Router (file-based routing) +- **Code Quality**: BiomeJS (formatting/linting) +- **Build Platform**: EAS (Expo Application Services) +- **CI/CD**: GitHub Actions with Bun + +## Package Management + +**CRITICAL: ALWAYS use `bun` for all package management operations** + +- **NEVER use `npm`, `yarn` or `npx` commands** +- Use `bun install` instead of `npm install` or `yarn install` +- Use `bun add ` instead of `npm install ` +- Use `bun remove ` instead of `npm uninstall ` +- Use `bun run