N°2435.2 Manage SCSSPHP lib using composer

This commit is contained in:
Molkobain
2019-08-13 10:50:54 +02:00
parent 5960dc6245
commit bb4c8ea52d
43 changed files with 762 additions and 2 deletions

10
lib/bin/pscss Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../scssphp/scssphp/bin" && pwd)
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
"${dir}/pscss" "$@"

4
lib/bin/pscss.bat Normal file
View File

@@ -0,0 +1,4 @@
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/../scssphp/scssphp/bin/pscss
php "%BIN_TARGET%" %*