-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update way to build demo and add comments for different App*.vue vers…
…ions
- Loading branch information
1 parent
b0c0bb6
commit 0dabbe9
Showing
10 changed files
with
73 additions
and
22 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
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,13 +1,18 @@ | ||
#!/bin/bash | ||
|
||
ruby ./build_fixtures.rb | ||
|
||
rm -rf client/dist-demo | ||
(cd client/ && VITE_DEMO_MODE=true npm run build) | ||
(cd client/ && npm run build:demo) | ||
|
||
if [ -d "../debugbar.dev/source/assets/debugbar" ]; then | ||
echo | ||
echo "debugbar.dev found in parent directory" | ||
echo " -> Copying assets" | ||
rm -f ../debugbar.dev/source/assets/debugbar/* | ||
cp ./client/dist-demo/assets/* ../debugbar.dev/source/assets/debugbar/ | ||
else | ||
echo "####################################################" | ||
echo "## debugbar.dev was NOT FOUND in parent directory ##" | ||
echo "####################################################" | ||
fi |
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
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,38 @@ | ||
import { fileURLToPath, URL } from "node:url" | ||
|
||
import { defineConfig } from "vite" | ||
import vue from "@vitejs/plugin-vue" | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
define: { | ||
__VUE_PROD_DEVTOOLS__: true, // nice for demo mode | ||
}, | ||
plugins: [ | ||
vue({ | ||
template: { | ||
compilerOptions: { | ||
// This is because I embed the ruby logo SVG as a vue component. | ||
// There is probably a better way. | ||
isCustomElement: (tag) => tag.includes(":"), | ||
}, | ||
}, | ||
}), | ||
], | ||
resolve: { | ||
alias: { | ||
"@": fileURLToPath(new URL("./src", import.meta.url)), | ||
}, | ||
}, | ||
build: { | ||
manifest: true, | ||
sourcemap: true, // very nice for demo mode | ||
emptyOutDir: false, | ||
outDir: "./dist-demo", | ||
rollupOptions: { | ||
input: { | ||
debugbar: fileURLToPath(new URL("./src/demo.ts", import.meta.url)), | ||
}, | ||
}, | ||
}, | ||
}) |