Skip to content

Instantly share code, notes, and snippets.

@patricksimpson
Created October 30, 2020 02:40
Show Gist options
  • Save patricksimpson/0422226788d080fe49c7636566aeed31 to your computer and use it in GitHub Desktop.
Save patricksimpson/0422226788d080fe49c7636566aeed31 to your computer and use it in GitHub Desktop.
#!/bin/sh
dir=app
files=*.js
output=dist.js
find $dir/$files -exec cat {} \; > $output
while true; do
watch -d -g ls -lR $dir/$files
find $dir/$files -exec cat {} \; > $output
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment