Skip to content

Instantly share code, notes, and snippets.

@snichme
Created June 18, 2014 12:33
Show Gist options
  • Select an option

  • Save snichme/8fb486c3338f69462dfb to your computer and use it in GitHub Desktop.

Select an option

Save snichme/8fb486c3338f69462dfb to your computer and use it in GitHub Desktop.
Grunt or Gulp or Broccoli
#!/bin/zsh
if [ -s gruntfile.js ]; then
grunt $@
elif [ -s gulpfile.js ]; then
gulp $@
elif [ -s brocfile.js ]; then
broccoli $@
else
echo "No build file found, checked for gruntfile.js, gulpfile.js and brocfile.js"
exit -1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment