Last active
April 14, 2017 22:29
-
-
Save derekbtw/424422a988a389fa939ea253826c576c to your computer and use it in GitHub Desktop.
Start new SASS Starter Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash - | |
#title :Create Sass Project | |
#description :Start a new Sass project using github.com/scotch-io/less-or-sass-starter.git | |
#backtitle :Sass Starter | |
#author :derekbtw | |
#version :1.0 | |
#============================================================================== | |
today=$(date +%m%d%Y) | |
div======================================= | |
repo="https://github.com/scotch-io/less-or-sass-starter.git" | |
echo -n "Name of project: " | |
read name | |
echo | |
git clone "$repo" "$name" && cd "$name" | |
npm install | |
gulp | |
if [ $? == 0 ]; then | |
echo "No project name given..." | |
exit 1 | |
elif [ "$name" == 1 ]; then | |
echo "$name has been created..." | |
exit 1 | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment