Created
December 19, 2015 02:23
-
-
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
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
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