Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Autocompiles when saving changes
|
||||
|
||||
cleanup() {
|
||||
trap - EXIT # Clear EXIT trap
|
||||
rm -rf ./tmp # Delete transpiled code
|
||||
clear # Clear screen
|
||||
kill -- -$$ # Exit
|
||||
}
|
||||
|
||||
trap cleanup EXIT # Execute cleanup on exit
|
||||
|
||||
tsc --watch & # Transpiling
|
||||
sleep 5 # Wait for transpiling to start in watch mode
|
||||
watchify ./tmp/* -o ./www/main.js > /dev/null # Browserify silently
|
||||
|
||||
trap - EXIT # Just to be sure
|
||||
Reference in new issue
Block a user