mirror of
https://gitlab.com/octospacc/WhichNot.git
synced 2025-06-27 09:02:56 +02:00
Allow exporting single notebooks and partial imports; Refactor main app structure; Add TypeScript config
This commit is contained in:
21
build.sh
Normal file
21
build.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cd ./src/app
|
||||
|
||||
echo 'window.SCHEMA=' > ./schema.json.js
|
||||
cat ../schema.json >> ./schema.json.js
|
||||
|
||||
cp ../index.html ../service-worker.js ./
|
||||
|
||||
for lib in lib/*.js
|
||||
do sed -i "s|</head>|<script src='./${lib}'></script></head>|" ./index.html
|
||||
done
|
||||
|
||||
for mod in *.js
|
||||
do sed -i "s|<body>|<body><script src='./${mod}'></script>|" ./index.html
|
||||
done
|
||||
|
||||
for file in *.* lib/*.* lib/*/*.*
|
||||
do sed -i "s|//files//|'/${file}', //files//|" ./service-worker.js
|
||||
done
|
Reference in New Issue
Block a user