feat: add svelte-starter-kit and CLI integration#3
Open
Moxypixy wants to merge 1 commit intoK-Kluster:masterfrom
Open
feat: add svelte-starter-kit and CLI integration#3Moxypixy wants to merge 1 commit intoK-Kluster:masterfrom
Moxypixy wants to merge 1 commit intoK-Kluster:masterfrom
Conversation
Collaborator
|
Hey @Moxypixy, I'm sorry I missed this. Could you please have a quick look at the conflicts before I proceed with the review? Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates a new Svelte Starter Kit into the monorepo and updates the kaspa-starter-cli to support it.
The Svelte starter kit provides a feature-parity implementation of the existing React starter, demonstrating how to build Kaspa applications using Svelte 5 and the
@kluster/kaspa-wasm-web
SDK.
Key Changes
Added a complete Svelte 5 + Vite + TypeScript starter project.
Includes modular features:
BlockDAG Info: Visualizing current DAG state.
Balance Checker: Real-time balance lookup.
Live Blocks: Monitoring new blocks.
Configured with TailwindCSS and shadcn-svelte for UI components.
Includes vite.config.ts adjustments to ensure correct WASM SDK loading.
New Option: Added "svelte" to the interactive project type selection.
New Flag: Added --type <react|nodejs|svelte> flag to bypass interactive prompts (useful for CI/testing).
Logic: Updated project initialization to handle Svelte dependencies and platform configuration ("web").
Added dev:svelte-starter-kit script to root package.json.
Verified that the CLI correctly bootstraps a working Svelte application.
Verified that npm run dev and npm run build work in the generated project.
How to Test
Build the CLI:
npm run build --filter=kaspa-starter-cli
Generate a Project:
node packages/kaspa-starter-cli/dist/index.js --dev --type svelte
OR interactively:
node packages/kaspa-starter-cli/dist/index.js --dev
Run the App:
cd svelte-starter
npm run dev