Skip to content

Instantly share code, notes, and snippets.

@a-r-d
a-r-d / deploy-roots.sh
Last active August 29, 2015 14:07
Bash script for deploying roots themes. Packages theme file into a zip, omits .git and node_modules.
#!/bin/bash
#
# This is a simple deploy script to create a .zip file of your theme
# The first argument passed becomes the .zip filename.
echo "Building site for packaging..."
grunt build
echo "Begin zipping..."
FILE="roots-deploy-theme.zip"
if [ ! -z "$1" ]
then