Skip to content
1k-dev-commands logo

OneKey Development Commands

1k-dev-commands

Development commands for OneKey monorepo. Use when running dev servers, building apps, linting, testing, or troubleshooting build issues. Triggers on yarn, dev, build, lint, test, desktop, mobile, web, extension, ios, android, compile, bundle.

SKILL.md

Full skill instructions

OneKey Development Commands

Application Development Commands

PLATFORM-SPECIFIC DEVELOPMENT:

  • yarn app:desktop - Start desktop Electron app development

    • Runtime: 30-60 seconds to start
    • Common issues: Node version conflicts, missing native dependencies
    • Troubleshooting: Run yarn clean && yarn reinstall if startup fails
  • yarn app:web - Start web development server (port 3000)

    • Runtime: 15-30 seconds to start
    • Common issues: Port 3000 already in use, webpack compilation errors
    • Troubleshooting: Kill existing processes on port 3000, check console for specific errors
  • yarn app:ext - Start browser extension development

    • Runtime: 20-40 seconds to start
    • Common issues: Manifest v3 validation errors, permission issues
    • Troubleshooting: Check extension manifest validity, verify content security policy
  • yarn app:ios - Start iOS mobile development

    • Runtime: 1-2 minutes (includes Metro bundler)
    • Common issues: Xcode setup, simulator issues, pod install failures
    • Prerequisites: Xcode installed, iOS simulator available
  • yarn app:android - Start Android mobile development

    • Runtime: 1-2 minutes (includes Metro bundler)
    • Common issues: Android SDK path, emulator setup, gradle build failures
    • Prerequisites: Android Studio, SDK tools, emulator configured
  • yarn app:web-embed - Start embeddable components development

    • Runtime: 15-30 seconds
    • Usage: For developing standalone wallet components

Build Commands

PRODUCTION BUILDS (Use for final validation):

  • yarn app:desktop:build - Build desktop app for all platforms

    • Runtime: 5-10 minutes (multi-platform build)
    • Output: Platform-specific installers in apps/​desktop/​dist/
    • Common issues: Code signing, platform-specific dependencies
    • Verification: Test installers on target platforms
  • yarn app:ext:build - Build browser extension

    • Runtime: 2-3 minutes
    • Output: Extension packages in apps/​ext/​dist/
    • Common issues: Manifest validation, content security policy violations
    • Verification: Load extension in browser for testing
  • yarn app:web:build - Build web application

    • Runtime: 3-5 minutes
    • Output: Static files in apps/​web/​dist/
    • Common issues: Bundle size limits, missing environment variables
    • Verification: Serve built files and test functionality
  • yarn app:native-bundle - Bundle React Native app

    • Runtime: 3-5 minutes
    • Output: Platform-specific bundles
    • Common issues: Native module linking, Metro bundler errors
    • Prerequisites: Platform development environment properly configured

Development Tools & Quality Assurance

Pre-commit Commands (Local Development)

Use these for fast pre-commit validation:

  • yarn lint:staged - Lint only staged files (fast, recommended for pre-commit)
  • yarn tsc:staged - Type check (same as tsc:only)

Pre-commit workflow:

yarn lint:staged && yarn tsc:staged && git commit -m "your message"

CI Commands (Full Project Check)

These run in CI pipeline or for comprehensive validation:

  • yarn lint - Comprehensive linting (TypeScript, ESLint, folder structure, i18n)
    • Expected runtime: ~1 minute
    • Zero tolerance: ALL warnings and errors MUST be fixed
    • Use case: CI pipeline and comprehensive pre-PR checks
  • yarn test - Jest test execution
    • Use case: CI pipeline and test validation

Other Tools

  • yarn clean - Clean all build artifacts and node_modules
  • yarn reinstall - Full clean install (use when dependency issues occur)

Testing

  • Jest configuration in jest.config.js
  • Test setup in jest-setup.js
  • Tests located in @tests/ directories within packages
  • Mobile tests use jest-expo preset

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View