We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a5954 commit 8f02942Copy full SHA for 8f02942
examples/context-editor/build.sh
@@ -1,13 +1,20 @@
1
#!/bin/bash
2
3
+# Navigate to the project directory
4
+cd examples/context-editor
5
+
6
+# Run the existing build command
7
+npm run build
8
9
# Generate version number
10
VERSION=$(date +'%Y.%m.%d-%H%M%S')
11
12
# Ensure public directory exists
13
mkdir -p public
14
-# Copy files to public directory
-cp -R src/* public/
15
+# Copy built files to public directory
16
+# Assuming the build output is in a 'build' directory, adjust if different
17
+cp -R build/* public/
18
19
# Create version file
20
echo $VERSION > public/version.txt
0 commit comments