-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·35 lines (28 loc) · 927 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Start with a clean index.html
echo "<!DOCTYPE html>" > index.html
echo "<html>" >> index.html
echo "<head>" >> index.html
echo "<meta charset='utf-8'>" >> index.html
echo "<title>MultiLoom</title>" >> index.html
cat src/imports.html >> index.html
echo "<style>" >> index.html
# Include CSS directly into the <style> tag
cat src/styles.css >> index.html
echo "</style>" >> index.html
echo "</head>" >> index.html
echo "<body>" >> index.html
# Include the header and footer HTML
cat src/header.html >> index.html
echo "<script type='module'>" >> index.html
cat src/data.js >> index.html
cat src/visualize.js >> index.html
cat src/main.js >> index.html
cat src/utils.js >> index.html
cat src/api.js >> index.html
cat src/eventListeners.js >> index.html
cat src/draggable.js >> index.html
cat src/models.js >> index.html
echo "</script>" >> index.html
echo "</body>" >> index.html
echo "</html>" >> index.html