Skip to content

Instantly share code, notes, and snippets.

@idleberg

idleberg/gulp.sh

Created Sep 11, 2017
Embed
What would you like to do?
Spawn Gulp in sub-folder relative to Git root
#!/bin/sh
GIT_ROOT="$(git rev-parse --show-toplevel)"
DIRECTORY="$GIT_ROOT/path/to/subfolder"
printf "Spawning gulp in \"$DIRECTORY\"\n\n"
gulp --cwd "$DIRECTORY" $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment