fix(buddybook): build errors and deployment

This commit is contained in:
Danish Arora 2024-10-29 15:50:07 +05:30
parent 24b5b7463b
commit e0345c9e11
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
7 changed files with 28 additions and 5 deletions

12
ci/Jenkinsfile vendored
View File

@ -44,7 +44,7 @@ pipeline {
stage('dogfooding') { steps { script { buildExample() } } }
stage('message-monitor') { steps { script { buildExample() } } }
stage('flush-notes') { steps { script { buildNextJSExample() } } }
stage('buddybook') { steps { script { buildExample() } } }
stage('buddybook') { steps { script { buildViteExample() } } }
}
}
@ -89,6 +89,16 @@ def buildNextJSExample(example=STAGE_NAME) {
}
}
def buildViteExample(example=STAGE_NAME) {
def dest = "${WORKSPACE}/build/docs/${example}"
dir("examples/${example}") {
sh 'npm install --silent'
sh 'npm run build'
sh "mkdir -p ${dest}"
sh "cp -r dist/. ${dest}"
}
}
def copyExample(example=STAGE_NAME) {
def source = "examples/${example}"
def dest = "build/docs/${example}"

View File

@ -28,6 +28,5 @@
]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}

View File

@ -1 +1 @@
{"root":["./src/app.tsx","./src/env.ts","./src/main.tsx","./src/vite-env.d.ts","./src/components/header.tsx","./src/components/chain/creation/chaincreationform.tsx","./src/components/chain/preview/chainpreview.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/textarea.tsx","./src/lib/utils.ts"],"errors":true,"version":"5.6.3"}
{"root":["./src/app.tsx","./src/env.ts","./src/main.tsx","./src/vite-env.d.ts","./src/components/header.tsx","./src/components/qrcode.tsx","./src/components/telemetryoptin.tsx","./src/components/telemetrypage.tsx","./src/components/chain/signchain.tsx","./src/components/chain/signsharedchain.tsx","./src/components/chain/create/creationpreview.tsx","./src/components/chain/view/chainlist.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dialog.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/textarea.tsx","./src/hooks/usewalletprompt.ts","./src/lib/privacypolicy.ts","./src/lib/utils.ts","./src/lib/waku.ts","./src/lib/walletconnect.ts"],"version":"5.6.3"}

View File

@ -9,6 +9,7 @@
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"noEmit": true,
"isolatedModules": true,
"moduleDetection": "force",

File diff suppressed because one or more lines are too long

2
examples/buddybook/vite.config.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
declare const _default: import("vite").UserConfig;
export default _default;

View File

@ -0,0 +1,11 @@
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});