File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
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
3
# Generate version number
10
4
VERSION=$( date +' %Y.%m.%d-%H%M%S' )
11
5
12
6
# Ensure public directory exists
13
7
mkdir -p public
14
8
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/
9
+ # Copy required MD files from root
10
+ cp ../../CODEBASE-CONTEXT.md public/
11
+ cp ../../CODING-ASSISTANT-PROMPT.md public/
12
+ cp ../../GENERATE-CONTEXT-PROMPT.md public/
18
13
19
14
# Create version file
20
15
echo $VERSION > public/version.txt
@@ -41,4 +36,4 @@ cat << EOF > public/version.html
41
36
</html>
42
37
EOF
43
38
44
- echo " Build completed. Version: $VERSION "
39
+ echo " Publish step completed. Version: $VERSION "
Original file line number Diff line number Diff line change 18
18
"@types/react-router-dom" : " ^5.3.3" ,
19
19
"class-variance-authority" : " ^0.7.0" ,
20
20
"clsx" : " ^2.1.1" ,
21
+ "js-yaml" : " ^4.1.0" ,
21
22
"react" : " ^18.3.1" ,
22
23
"react-dom" : " ^18.3.1" ,
23
24
"react-router-dom" : " ^6.26.2" ,
31
32
"start" : " cross-env PORT=13000 react-scripts start" ,
32
33
"build" : " react-scripts build" ,
33
34
"test" : " react-scripts test" ,
34
- "eject" : " react-scripts eject"
35
+ "eject" : " react-scripts eject" ,
36
+ "publish" : " chmod +x build.sh && ./build.sh"
35
37
},
36
38
"eslintConfig" : {
37
39
"extends" : [
You can’t perform that action at this time.
0 commit comments