Skip to content

Instantly share code, notes, and snippets.

@derekbtw
Created February 15, 2017 12:15
Show Gist options
  • Save derekbtw/d325e78af82a73d9794248ad944c9283 to your computer and use it in GitHub Desktop.
Save derekbtw/d325e78af82a73d9794248ad944c9283 to your computer and use it in GitHub Desktop.
Place this batch file in any directory and run it to: create a new project, start a browser-sync server, create and listen to a scss file
cd projects
@echo off
COLOR 0A
set /p dname= New project name:
git clone https://github.com/BlackrockDigital/startbootstrap-bare.git %dname%
cd %dname%
mkdir scss
cd scss
echo //main > main.scss
cd ..\css
echo /*main*/ > main.css
cd ../
start cmd /k browser-sync start --server --files "css/*.css" "*.html" "js/*.js" "*.php"
start cmd /k sass --watch scss/main.scss:css/main.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment