css - Powershell build - compiling SASS -


i'm hoping start using sass in visual studio 2010 project using web workbench - issue of version control through tfs has me stumped. avoid overriding else's changes understand outputted css should excluded source control, , scss should compiled css server side during build process. use powershell script build, can't seem find information on how incorporate scss compilation in powershell. there decent documentation out there on process?

i think lack of experience powershell/build scripts in general had me overthinking this. took following steps:

1) installed ruby windows here: https://www.ruby-lang.org/en/documentation/installation/

2) open command prompt -> entered gem install ruby

3) opened powergui script editor (already installed, can downloaded here: http://software.dell.com/products/powergui-freeware/)

4) created function execute following: sass -t compressed "path\sassinput.scss" "path\sassoutput.css"

and presto. want have way of doing each .scss file in directory not partial, enough me started now.

update: ended powershell script: (note $dirpath set project's root directory elsewhere)

$stylesheetpath = $dirpath + "app_themes\" $files = get-childitem $stylesheetpath -filter *.scss  ($i=0; $i -lt $files.count; $i++) {     $file = $files[$i]     $filename = $file.basename     $filepath = $file.fullname     if (-not $filename.startswith("_")) {         $newfilepath =  "$stylesheetpath$filename.css"         sass -t compressed $filepath $newfilepath     } } 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -