mirror of https://github.com/waku-org/waku-lab.git
fix(buddybook): build errors and deployment
This commit is contained in:
parent
24b5b7463b
commit
e0345c9e11
|
@ -44,7 +44,7 @@ pipeline {
|
||||||
stage('dogfooding') { steps { script { buildExample() } } }
|
stage('dogfooding') { steps { script { buildExample() } } }
|
||||||
stage('message-monitor') { steps { script { buildExample() } } }
|
stage('message-monitor') { steps { script { buildExample() } } }
|
||||||
stage('flush-notes') { steps { script { buildNextJSExample() } } }
|
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 copyExample(example=STAGE_NAME) {
|
||||||
def source = "examples/${example}"
|
def source = "examples/${example}"
|
||||||
def dest = "build/docs/${example}"
|
def dest = "build/docs/${example}"
|
||||||
|
|
|
@ -28,6 +28,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"]
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"}
|
|
@ -9,6 +9,7 @@
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
|
"noEmit": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
||||||
|
declare const _default: import("vite").UserConfig;
|
||||||
|
export default _default;
|
|
@ -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"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
Loading…
Reference in New Issue