1k-dev-commands
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 reinstallif 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
More from onekeyhq/app-monorepo
react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
109implementing-figma-designs
Implements Figma designs 1:1 using OneKey component library (还原设计稿).
771k-coding-patterns
Coding patterns and best practices — React components, promise handling, and TypeScript conventions.
691k-code-quality
Code quality standards — lint (eslint/oxlint), type check (tsc), pre-commit hooks, and comment conventions. All comments must be in English.
681k-date-formatting
Date and time formatting — use OneKey dateUtils (formatDate/formatTime) instead of native JS date methods.
681k-git-workflow
Git workflow and conventions — branching, commit messages, and PR creation.
68