This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We have been investigating using the Workbench command-line compiler to do the sass compilation on the build server. The scss files are successfully compiling in VS locally and producing the expected .css output. However, I haven't been able to determine how to successfully compile them using the command-line tool on the build server. The scss file @imports from another scss file within the same folder. I've attempted passing both files in, but the command-line tool errors out since it doesn't recognize a definition declared in the other file. I am attempting to use these two files: global.scss screen.scss (this file has an @import 'global' statement at top) Tried these statements on the command line:
Any help would be appreciated. |
|
|
I decompiled your command line compiler and I see - at least for sass compiling - you are simply executing the sass.bat file included in Ruby 1.93 and passing the command line options straight through. I'm hopeful I can make this work by simply calling sass.bat directly with the options, but would still appreciate any feedback. |
|
|
Seems for others looking to go this route, if you are mostly concerned with scss compilation, you can do this instead of using the command-line executable delivered by Mindscape. It seems like a lot of steps, but most are verification steps. 1) Install Ruby (1.9.3) using the Windows installer: http://rubyinstaller.org/downloads/ (when installing, checkmark 'Add Ruby executables to your PATH') 2) Open a command line and type:
3) Verify sass is working by typing: 4) Test compilation by opening a command line prompt, navigate to a directory where you have a scss file, then type: sass nameofscssfile.scss:testouput.scss -C (the -C tells it to not create a cache directory, I don't want one on my build output) 5) Once verified, open your web project, create a post-build event like so:
6) Save the project file and test it works by rebuilding your solution -(you may need to tell Mindscape Workbench to not compile your scss files via their settings if you have write issues since it would do it twice, but verify for your situation). You should now have a css file output after you build the solution. 7) Once verified, you will want to install Ruby 1.9.3 on your build server, type: Hope this helps. |
|