Skip to content

Commit

Permalink
add nt page to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
dublUayaychtee committed Mar 29, 2024
1 parent be852e6 commit 6a92591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sed -i -e 's/<p><\/p>/<script src="\/networktables\/networktables.js"><\/script><p><\/p>/g' dist/index.html
sed -i -e 's/<p><\/p>/<script src="\/networktables\/utils.js"><\/script><p><\/p>/g' dist/index.html
sed -i -e 's/<p><\/p>/<script src="\/networktables\/camera.js"><\/script>/g' dist/index.html
sed -i -e 's/<p><\/p>/<script src="\/networktables\/networktables.js"><\/script><p><\/p>/g' dist/index.html dist/nt.html
sed -i -e 's/<p><\/p>/<script src="\/networktables\/utils.js"><\/script><p><\/p>/g' dist/index.html dist/nt.html
sed -i -e 's/<p><\/p>/<script src="\/networktables\/camera.js"><\/script>/g' dist/index.html dist/nt.html

sed -i -e "/<\!--FL-->/rsrc/asset/wheel/FL.svg" dist/index.html
sed -i -e "/<\!--FR-->/rsrc/asset/wheel/FR.svg" dist/index.html
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build": "parcel build src/index.html --no-optimize",
"build": "parcel build src/index.html src/nt.html --no-optimize",
"run": "cd dist && python -m pynetworktables2js",
"clean": "rm dist/*"
},
Expand Down

0 comments on commit 6a92591

Please sign in to comment.