بنقرة واحدة
convert-to-vite
Convert a standalone HTML game into a Vite project with proper module structure
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Convert a standalone HTML game into a Vite project with proper module structure
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | convert-to-vite |
| description | Convert a standalone HTML game into a Vite project with proper module structure |
Convert this HTML game into a Vite-powered project.
Initialize a new package.json with:
"name" based on the game directory name"private": true"type": "module""scripts": "dev": "vite", "build": "vite build", "preview": "vite preview"Install dependencies:
vite as a devDependencyCreate vite.config.ts:
import { defineConfig } from "vite"
export default defineConfig({})
Extract inline <script> and <style> from index.html:
src/main.js (or src/main.ts)src/style.css<script type="module" src="/src/main.js"></script> and <link rel="stylesheet" href="/src/style.css">Move any standalone JS/CSS files into src/
Update all asset references to use relative paths that Vite can resolve
Verify if you need to edit the .gitignore to exclude dist/ and other build artifacts like node_modules etc
npx vite build completes without errorsnpx vite as it did beforeindex.html (except small config objects)Create app metadata, thumbnail, and offline configuration for the Puzzmo platform
Wire up game completion signaling to the Puzzmo host
Integrate the Puzzmo SDK into a Vite game project for host communication
Configure the Puzzmo CLI for uploading game builds
Edit the `integrations` block in puzzmo.json (leaderboards, notables, etc.) using live game context from the dev.puzzmo.com MCP
Add integrations to puzzmo.json with leaderboard configuration using deeds