-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create-script Vite + React + JS template (#107)
* feat: Create Fedimint App script * feat: polish, update versions, fix tests * feat: add vite-react JS template * chore: add changeset * chore: update package name
- Loading branch information
1 parent
4943332
commit 014ea79
Showing
17 changed files
with
844 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
'@fedimint/create-fedimint-app': patch | ||
'create-fedimint-app': patch | ||
--- | ||
|
||
Introducing the create-fedimint-app script! Your helper to quickly get started with the fedimint-web-sdk. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'create-fedimint-app': patch | ||
--- | ||
|
||
Added Vite + React + JS Template |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Fedimint + Vite + React + TypeScript Starter | ||
|
||
This template provides a minimal setup to get The Fedimint Web SDK working with Vite + React + TypeScript. | ||
|
||
## Technologies Used | ||
|
||
- core-web: The Fedimint client library for web applications | ||
- Vite: A fast build tool and development server. Check the [`vite.config.ts`](./vite.config.ts) for configurations required for handling wasm. | ||
- React |
24 changes: 24 additions & 0 deletions
24
packages/create-fedimint-app/template-vite-react/_gitignore
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
12 changes: 12 additions & 0 deletions
12
packages/create-fedimint-app/template-vite-react/index.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite Core</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
packages/create-fedimint-app/template-vite-react/package.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "fedimint-vite-react-typescript-starter", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"clean": "rm -rf dist", | ||
"clean:deep": "pnpm run clean && rm -rf node_modules" | ||
}, | ||
"dependencies": { | ||
"@fedimint/core-web": "latest", | ||
"react": "19.0.0", | ||
"react-dom": "19.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "19.0.0", | ||
"@types/react-dom": "19.0.0", | ||
"@vitejs/plugin-react": "^4.3.2", | ||
"buffer": "^6.0.3", | ||
"vite": "^5.4.8", | ||
"vite-plugin-wasm": "^3.3.0" | ||
} | ||
} |
Oops, something went wrong.