fantasia-electron-main

Orchestrate Electron main process lifecycle and window management for Fantasia Archive.

401|56|Updated Jan 30, 2021
One-click install
npx skills add https://github.com/vishiri/fantasia-archive --skill fantasia-electron-main
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fantasia-electron-main
Source: https://github.com/vishiri/fantasia-archive/tree/main/.cursor/skills/fantasia-electron-main
Command: npx skills add https://github.com/vishiri/fantasia-archive --skill fantasia-electron-main

SYSTEM DOCUMENTATION & REQUIREMENTS

Works on Fantasia Archive Electron main process: app lifecycle, window management, platform tweaks, and native integrations. Use when editing electron-main.ts, src-electron/mainScripts/, or main-side tests.

Frequently Asked Questions about fantasia-electron-main

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage the Electron main process lifecycle for a desktop app?

Electron main process lifecycle management orchestrates app initialization, window creation, and platform-specific tweaks within electron-main.ts. It handles app events, native integrations, and window management using the mainScripts structure to keep desktop app behavior consistent across platforms.

When do I need to organize code into src-electron/mainScripts/ for window management?

You need src-electron/mainScripts/ organization when editing Fantasia Archive's Electron main process to separate window management logic and platform tweaks from the main entry point. This structure ensures native integrations and app lifecycle handlers remain modular and testable.

How do I run unit tests and lint TypeScript for Electron main process changes?

Running unit tests and linting TypeScript for Electron main process changes requires satisfying project patterns that validate app lifecycle logic and window management. Tests verify platform tweaks and native integrations in electron-main.ts and src-electron/mainScripts/ directories.

Does Electron window management support platform tweaks and native integrations?

Electron window management supports platform tweaks and native integrations by applying project patterns like app.getPath('userData') within the main process lifecycle. These native integrations ensure the desktop app behaves correctly across different operating systems.

Why does my Electron desktop app need a structured mainScripts directory?

A structured mainScripts directory is needed to isolate Electron main process logic, keeping window management and platform tweaks maintainable. Without it, app lifecycle handlers and native integrations become difficult to unit test and lint properly.

Can I use app.getPath('userData') for window management in the Electron main process?

You can use app.getPath('userData') in the Electron main process to resolve user data directories for window management and native integrations. Following this project pattern ensures the desktop app stores platform tweaks and lifecycle data in the correct location.