Created
August 8, 2014 18:30
-
-
Save andrewdc/da93c6fc71227a70dd80 to your computer and use it in GitHub Desktop.
Installer Bash
This file contains 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 | |
# nxsass setup script | |
clear | |
echo " __ __ "; | |
echo " \ \ / / "; | |
echo " _ __ | | | | ___ __ _ ___ ___ "; | |
echo " | '_ \ \ \/ / / __| / _\` |/ __|/ __|"; | |
echo " | | | | / /\ \ \__ \| (_| |\__ \\\\__ \\"; | |
echo " |_| |_|| | | ||___/ \__,_||___/|___/"; | |
echo " /_/ \\_\\ "; | |
echo " "; | |
echo " "; | |
echo " Quick Setup "; | |
echo " "; | |
echo " "; | |
echo " -Andrew Colclough: @wtc "; | |
echo " -Lauren Kodai: @The_Lela "; | |
echo " "; | |
echo " "; | |
echo " "; | |
read -p " Welcome! Ready to setup nxsass [y]? " ready | |
if [[ "$ready" = "Y" ]] || [[ "$ready" = "y" ]] | |
then | |
mkdir ../../css | |
# Move and rename source-template | |
cp -Rv source-template ../../css/source | |
# Copy Gulp | |
cp -Rv gulp ../../gulp | |
cp -v gulpfile.js ../../gulpfile.js | |
# copy NPM dependency list | |
cp -v package.json ../../package.json | |
# copy demo page... | |
cp -v index.html ../../index.html | |
cd ../../ | |
npm install | |
echo " "; | |
echo " __ __ "; | |
echo " \ \ / / "; | |
echo " _ __ | | | | ___ __ _ ___ ___ "; | |
echo "| '_ \ \ \/ / / __| / _\` |/ __|/ __|"; | |
echo "| | | | / /\ \ \__ \| (_| |\__ \\\\__ \\"; | |
echo "|_| |_|| | | ||___/ \__,_||___/|___/"; | |
echo " /_/ \\_\\ "; | |
echo " "; | |
echo " "; | |
echo " "; | |
echo " --------------------------------------------------------------------------------------------"; | |
echo "| | "; | |
echo "| Well, that was easy. Go up two directories, run 'gulp', and visit http://localhost:1337 |"; | |
echo "| |"; | |
echo " -------------------------------------------------------------------------------------------- "; | |
echo " "; | |
else | |
echo " "; | |
echo " Ok. No worries. Meet me back here when you are ready! " | |
echo " "; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment