Skip to content

Commit

Permalink
🏗️ Split into workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Feb 5, 2024
1 parent 98fac44 commit 7d8da73
Show file tree
Hide file tree
Showing 44 changed files with 111 additions and 29 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# next.js
/.next/
/out/
**/.next/
**/out/

# production
/build
Expand All @@ -33,7 +35,7 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts
packages/wallet/next-env.d.ts

# sst
.sst
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion stacks/WebApp.ts → iac/WebApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function WalletAppStack({ stack }: StackContext) {

// Declare the Next.js site
const site = new NextjsSite(stack, "wallet", {
path: "./",
path: "packages/wallet",
// Set the custom domain
customDomain: {
domainName: `${subDomain}`.toLowerCase(),
Expand Down
27 changes: 3 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,17 @@
"private": true,
"type": "module",
"scripts": {
"dev": "sst bind next dev",
"build": "sst bind next dev next build",
"start": "sst bind next dev next start",
"dev": "sst dev",
"lint": "biome lint .",
"format:check": "biome check .",
"format": "biome check --apply .",
"deploy": "sst deploy --stage prod"
},
"dependencies": {
"@peculiar/asn1-ecc": "^2.3.8",
"@peculiar/asn1-schema": "^2.3.8",
"@simplewebauthn/browser": "^9.0.1",
"@simplewebauthn/server": "^9.0.1",
"@tanstack/store": "^0.3.1",
"@uidotdev/usehooks": "experimental",
"iron-session": "^8.0.1",
"mongodb": "^6.3.0",
"next": "14.1.0",
"permissionless": "^0.0.35",
"radash": "^11.0.0",
"react": "^18",
"react-dom": "^18",
"unique-username-generator": "^1.3.0",
"viem": "^2.7.1"
},
"devDependencies": {
"sst": "^2.40.1",
"@biomejs/biome": "1.5.3",
"@simplewebauthn/types": "^9.0.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
}
},
"workspaces": ["packages/*"]
}
34 changes: 34 additions & 0 deletions packages/example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@frak-wallet/example",
"version": "0.1.0",
"description": "Simple demo of a future Frak Wallet",
"private": true,
"type": "module",
"scripts": {
"dev": "sst bind next dev",
"build": "sst bind next dev next build",
"start": "sst bind next dev next start",
"lint": "biome lint .",
"format:check": "biome check .",
"format": "biome check --apply .",
"deploy": "sst deploy --stage prod"
},
"dependencies": {
"@tanstack/store": "^0.3.1",
"@uidotdev/usehooks": "experimental",
"iron-session": "^8.0.1",
"mongodb": "^6.3.0",
"next": "14.1.0",
"radash": "^11.0.0",
"react": "^18",
"react-dom": "^18",
"viem": "^2.7.1"
},
"devDependencies": {
"sst": "^2.40.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
}
}
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@frak-wallet/wallet",
"version": "0.1.0",
"description": "Simple demo of a future Frak Wallet",
"private": true,
"type": "module",
"scripts": {
"dev": "sst bind next dev",
"build": "sst bind next dev next build",
"start": "sst bind next dev next start",
"lint": "biome lint .",
"format:check": "biome check .",
"format": "biome check --apply .",
"deploy": "sst deploy --stage prod"
},
"dependencies": {
"@peculiar/asn1-ecc": "^2.3.8",
"@peculiar/asn1-schema": "^2.3.8",
"@simplewebauthn/browser": "^9.0.1",
"@simplewebauthn/server": "^9.0.1",
"@tanstack/store": "^0.3.1",
"@uidotdev/usehooks": "experimental",
"iron-session": "^8.0.1",
"mongodb": "^6.3.0",
"next": "14.1.0",
"permissionless": "^0.0.35",
"radash": "^11.0.0",
"react": "^18",
"react-dom": "^18",
"unique-username-generator": "^1.3.0",
"viem": "^2.7.1"
},
"devDependencies": {
"sst": "^2.40.1",
"@simplewebauthn/types": "^9.0.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/wallet/sst-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="../../.sst/types/index.ts" />
25 changes: 25 additions & 0 deletions packages/wallet/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"lib": ["es2023", "esnext", "dom", "dom.iterable"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{"name": "next"}],
"paths": {
"@/*": ["./src/*"]
},
"target": "esnext"
},
"include": [
"packages/wallet/next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"target": "esnext"
}
1 change: 0 additions & 1 deletion sst-env.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SSTConfig } from "sst";
import { WalletAppStack } from "./stacks/WebApp";
import { WalletAppStack } from "./iac/WebApp";

export default {
config(_input) {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"target": "esnext"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": [
"packages/wallet/next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"target": "esnext"
}

0 comments on commit 7d8da73

Please sign in to comment.