搜索

PythonReactSEOPDF
GitHub Skill

monorepo-commands

Comprehensive reference for npm scripts in a full-stack monorepo containing FastAPI backend, React Native mobile app, and React/Vite web app. Use when working with build, test, lint, or typecheck commands, or when helping with development workflows in this monorepo structure.

stevendejongnl☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Monorepo Commands

Reference for all npm scripts available in this full-stack monorepo project.

Project Structure

This monorepo contains three main packages:

  • API Server: FastAPI (Python)
  • Mobile App: React Native (TypeScript)
  • Web App: React + Vite (TypeScript)

Command Categories

Global Commands

Commands that run across the entire monorepo:

  • npm run test - Run all tests (mobile Jest + API pytest)
  • npm run typecheck - Type check all packages (mobile, web, API)
  • npm run lint - Lint all packages (mobile, web, API)
API Server Commands

FastAPI backend commands:

  • npm run api:test - Run pytest tests
  • npm run api:typecheck - Run mypy type checking
  • npm run api:lint - Run Ruff linter
Mobile App Commands

React Native commands:

  • npm run mobile:ios - Build and run on iOS simulator (requires Xcode)
  • npm run mobile:android - Build and run on Android emulator (requires Android SDK)
  • npm run mobile:test - Run Jest tests
  • npm run mobile:typecheck - Run TypeScript type checking
  • npm run mobile:lint - Run ESLint
Web App Commands

React + Vite commands:

  • npm run web:dev - Start development server with HMR (http://localhost:5173)
  • npm run web:build - Build for production (outputs to web-app/dist)

Detailed Command Reference

For complete details on each command including descriptions and usage notes, see:

Usage Patterns

When working with this monorepo:

  1. Starting development: Use npm run web:dev for web or npm run mobile:ios/mobile:android for mobile
  2. Before committing: Run npm run lint and npm run typecheck to catch issues
  3. Running tests: Use npm run test for all tests or specific commands for targeted testing
  4. Building for production: Use npm run web:build for web deployment

Technology Stack

  • Backend: Python, FastAPI, pytest, mypy, Ruff
  • Mobile: React Native, TypeScript, Jest, ESLint
  • Web: React, Vite, TypeScript, ESLint
  • Monorepo: npm workspaces

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!