Skip to content

Commit

Permalink
squash all 172-add-example-using-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
nmrshll committed Feb 13, 2024
1 parent 88d2e99 commit 1551f58
Show file tree
Hide file tree
Showing 7 changed files with 1,361 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/simple_counter/web-solid/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Solid + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
24 changes: 24 additions & 0 deletions examples/simple_counter/web-solid/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "web-solid",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "pnpm run wasm:build && pnpm install && vite",
"build": "pnpm run wasm:build && pnpm install && tsc && vite build",
"preview": "pnpm run wasm:build && pnpm install && vite preview",
"wasm:build": "cd ../shared && wasm-pack build --target web"
},
"dependencies": {
"bulma": "^0.9.4",
"shared": "file:../shared/pkg",
"shared_types": "file:../shared_types/generated/typescript",
"solid-js": "^1.8.7",
"svelte": "^4.2.7"
},
"devDependencies": {
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vite-plugin-solid": "^2.8.0"
}
}
Loading

0 comments on commit 1551f58

Please sign in to comment.