feat: Adds browser-sync / hot reload
This commit is contained in:
6
swift-dev
Executable file
6
swift-dev
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env zsh
|
||||
touch .build/browser-dev-sync
|
||||
browser-sync start -p localhost:8080 --ws &
|
||||
|
||||
watchexec -w Sources -e .swift -r 'swift build --product App && touch .build/browser-dev-sync' &
|
||||
watchexec -w .build/browser-dev-sync --ignore-nothing -r '.build/debug/App'
|
||||
Reference in New Issue
Block a user