Last active
February 17, 2016 16:50
-
-
Save Caffe1neAdd1ct/bcc02e1bd27051e487fb to your computer and use it in GitHub Desktop.
Sassc with Netbeans Css Preprocessors run on save
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
## | |
# Strips out --cache-location from netbeans sass command which isn't supported by sassc | |
# Avoiding installing ruby for a plain html project and use Visual Studio 2015 and C++ libs to compile self contained sassc.exe | |
## | |
@echo off | |
set RESTVAR= | |
shift | |
:loop1 | |
if "%2"=="" goto after_loop | |
set RESTVAR=%RESTVAR% %2 | |
shift | |
goto loop1 | |
:after_loop | |
echo %RESTVAR% | |
echo "args above" | |
echo "running" | |
C:\Users\username\Documents\NetBeansProjects\frameworks\libsass\sassc\bin\sassc.exe %RESTVAR% |
PHP MITM script for Netbeans to Sassc
Removes the following:
[0] =>
string(22) "/home/username/test.sh"
[1] =>
string(16) "--cache-location"
[2] =>
string(48) "/home/kandrews/.cache/netbeans/8.1/sass-compiler"
[3] =>
string(12) "--debug-info"
#!/usr/bin/env php
<?php
/** Build arg string */
if(isset($argv)) {
var_dump($argv);
/** Remove original phpunit script call argument */
unset($argv[0]);
unset($argv[1]);
unset($argv[2]);
unset($argv[3]);
/** Build remaining arguments into a string */
$argString = null;
foreach( $argv as $arg ) {
$argString .= '"' . $arg . '" ';
}
/** Run new test command */
echo shell_exec('/home/username/Builds/sassc/bin/sassc ' . $argString);
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Visual Studio community edition 2015
Copy C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include
Copy C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x86 to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib
git clone https://github.com/sass/libsass
cd libsass
git clone https://github.com/sass/sassc
Run in powershell inside sassc directory:
&"${env:ProgramFiles(x86)}\MSBuild\14.0\Bin\MSBuild" win\sassc.sln
If it complies you're in luck!
Point Netbeans at the above batch script and change the Path on line20 to sassc.exe.
Setup project css preprocessor settings