diff --git a/_MYconfig.scss b/_MYconfig.scss new file mode 100644 index 0000000..b156f26 --- /dev/null +++ b/_MYconfig.scss @@ -0,0 +1,11 @@ +// This file is just a placeholder and not actually used. Please rename to _functions.scss +// and write custom functions that you wish to be scoped globally across all flavors (except css) +// This file can be used to override any and all mixins and functions. Please override variables in the project +// directories in _vars.scss in any given flavor (except css). + +// Once file has been renamed to _functions.scss do the following: +// 1. Open _config.scss and scroll to the bottom +// 2. Uncomment @import "functions"; to enable the use of custom code +// 3. Enjoy! + +// @function myFunction() { } diff --git a/bin/setup.sh b/bin/setup.sh new file mode 100755 index 0000000..fecfa37 --- /dev/null +++ b/bin/setup.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +cwd=${PWD##*/} + +if [ $cwd == "bin" ]; then + cd ../ +fi + +echo "Please enter in the name of your project with no spaces or special characters other than - or _ and press [ENTER]" +read name +validated=0; + +case $name in + *\ * ) + let validated=0 + ;; + *) + echo "Project name saved" + let validated=1 + ;; +esac + +while [ $validated -ne 1 ]; do + echo "Project name invalid, please try again and press [ENTER]" + read name + case $name in + *\ * ) + let validated=0 + ;; + *) + echo "Project name saved" + let validated=1 + ;; + esac +done + +echo "Project name is ${name}" +echo "Renaming user config from _MYconfig.scss to _${name}.config.scss" +mv _MYconfig.scss _${name}.config.scss + +echo "Renaming skeleton_template to skeleton" +mv skeleton_template.scss skeleton.scss + +echo "Adding user override to core/_config.scss" +echo "@import \"core/_${name}.config.scss\"" >> core/_config.scss + +echo "Done" +exit 0; diff --git a/bin/upgrade.sh b/bin/upgrade.sh new file mode 100755 index 0000000..908a43e --- /dev/null +++ b/bin/upgrade.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +echo "Upgrade utility working..." +cwd=${PWD##*/} + +if [ $cwd == "bin" ]; then + cd ../ +fi + +echo "Run git pull? [y/n]" +read ans +valid=0 + +# { [ "$varB" = "t1" ] || [ "$varC" = "t2" ]; } then + +if [[ ("$ans" = "y" || "$ans" = "n" || "$ans" = "Y" || "$ans" = "N") ]]; then + let valid=1 +else + let valid=0 +fi + +while [ $valid -ne 1 ]; do + echo "Invalid response, try again" + read ans + if [[ ("$ans" = "y" || "$ans" = "n" || "$ans" = "Y" || "$ans" = "N") ]]; then + let valid=1 + else + let valid=0 + fi +done + +if [[ "$ans" == "y" || "$ans" == "Y" ]]; then + echo "Starting git pull..." + git pull origin + echo "Upgrade complete. Removing unneeded files" +fi + +rm _MYconfig.scss +rm skeleton_template.scss diff --git a/skeleton_template.scss b/skeleton_template.scss new file mode 100644 index 0000000..f3e8146 --- /dev/null +++ b/skeleton_template.scss @@ -0,0 +1,5 @@ +// Choose the your flavor of Skeleton Sass and compile + +// @import "core/flavors/bourbon"; // sass --update -C skeleton.scss:skeleton.css +// @import "core/flavors/compass"; // sass --update -C --compass skeleton.scss:skeleton.css +@import "core/flavors/sass"; // sass --update -C skeleton.scss:skeleton.css