Skip to content

Fix Start DECKIO task with a runnable engine demo#40

Open
DevSecNinja wants to merge 1 commit into
deckio-art:mainfrom
DevSecNinja:fix/start-deckio-dev-task
Open

Fix Start DECKIO task with a runnable engine demo#40
DevSecNinja wants to merge 1 commit into
deckio-art:mainfrom
DevSecNinja:fix/start-deckio-dev-task

Conversation

@DevSecNinja

Copy link
Copy Markdown
Contributor

Summary

The Start DECKIO task failed immediately because it forwarded to a dev script that does not exist in @deckio/deck-engine:

npm error Missing script: "dev"
npm error workspace @deckio/deck-engine@1.22.1

The root dev script chains into the engine workspace (npm run dev -w @deckio/deck-engine), but that package only defined publishing/versioning scripts — there was no runnable app. The task also passed an invalid -- --host npm arg, producing an Unknown cli config "--host" warning.

This PR makes the task launch a real, hot-reloading preview of the engine's own slides.

Changes

  • .vscode/tasks.json — run npm run dev (dropped the invalid -- --host arg).
  • packages/deck-engine/package.json — add a dev script (vite demo --host) and dev-only dependencies (@vitejs/plugin-react@^5 for Vite 7 compatibility, react, react-dom, vite).
  • packages/deck-engine/demo/ — a small Vite app (index.html, vite.config.js, deck.config.js, src/main.jsx, src/App.jsx, src/index.css) that renders the bundled generic slides through deckPlugin + the React plugin, mirroring the proven scaffold setup. This fixed a black screen caused by the engine .jsx files being served raw without the React/deck Vite plugins.
  • .gitignore — ignore Vite's .vite/ dev cache.
  • .vscode/mcp.json — add the GitHub MCP server config.

Notes

  • demo/ is not part of the package's files allowlist, so it is excluded from the published npm package (verified with npm pack --dry-run). No version bump is needed — the published package behavior is unchanged.
  • Verified the dev server boots on http://localhost:5173/ and the engine slide JSX transforms correctly (no raw JSX served).

Related

Onboarding follow-up tracked in #39.

The Start DECKIO task forwarded to a missing 'dev' script in
@deckio/deck-engine, so it failed immediately. Add a small Vite demo
app under packages/deck-engine/demo and a 'dev' script so the task
launches a real, hot-reloading preview of the engine slides.

- .vscode/tasks.json: run 'npm run dev' (drop the invalid '-- --host'
  npm arg that triggered the warning/failure)
- packages/deck-engine: add 'dev' script + demo Vite config/app and
  dev-only deps (@vitejs/plugin-react@5 for Vite 7, react, react-dom,
  vite); demo/ is excluded from the published package
- .gitignore: ignore Vite's .vite/ dev cache
- .vscode/mcp.json: add GitHub MCP server config
@DevSecNinja

Copy link
Copy Markdown
Contributor Author

@lopezleandro03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant