dotfiles/sublime/User/grunt-watch.sh

17 lines
296 B
Bash
Raw Normal View History

2012-11-15 06:12:19 +00:00
# Finds directory with `grunt.js` and runs `grunt watch`
cd_to_project_root() {
dir=`pwd`
while [ "$dir" != "/" ]; do
if [ -f "$dir/grunt.js" ]; then
cd "$dir"
break
fi
dir=`dirname "$dir"`
done
}
cd_to_project_root
grunt deploy --no-color --debug
grunt watch --no-color --debug