anthonyLukes
8/13/2014 - 7:33 PM

This is a handy bash utility for creating stubbed sass directories and sass files.

This is a handy bash utility for creating stubbed sass directories and sass files.

ASSETS_DIR="./src/assets/scss/"


if [ -z "$5" ]
then
    SASS_DIR="modules/";
else
    SASS_DIR=$5/;
fi

TARGET_DIR=$ASSETS_DIR$SASS_DIR;
mkdir $TARGET_DIR$1;
touch $TARGET_DIR$1/_$1_screen.scss;

if [ "$2" = "y" ]
then
    touch $TARGET_DIR$1/_$1_small.scss;
fi

if [ "$3" = "y" ]
then
    touch $TARGET_DIR$1/_$1_medium.scss;
fi

if [ "$4" = "y" ]
then
    touch $TARGET_DIR$1/_$1_large.scss;
fi