Skip to content

Instantly share code, notes, and snippets.

@HugoDF
Created December 19, 2015 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HugoDF/178a7bc22c35b6e78172 to your computer and use it in GitHub Desktop.
Save HugoDF/178a7bc22c35b6e78172 to your computer and use it in GitHub Desktop.
For Laravel 5, makes an SCSS file for each of the arguments and add an import statement for it in app.scss
function sass-make
set names $argv
for name in $names
set path ./resources/assets/sass/_{$name}.scss
touch {$path}
echo 'Created' {$path}
echo '\n@import "'{$name}'";' >> ./resources/assets/sass/app.scss
echo 'Added' {$name} 'to app.scss'
end
end⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment