CSS-NibblePoker/compile.cmd
Herwin Bozet 88a40efb4e Initial commit
Update .gitignore, LICENSE-CC0, and 70 more files...
2024-11-04 22:53:06 +01:00

42 lines
826 B
Batchfile

@echo off
setlocal enabledelayedexpansion
:: Going into the script's directory
cd /D "%~dp0"
:sass
echo.
echo Handling the SASS files
echo -----------------------
:sass-clean
echo Cleaning old files...
pushd %CD%
cd /d %~dp0\htdocs\
rmdir /Q /S ".\css"
mkdir css
popd
:sass-compile
echo Compiling SASS files...
pushd %CD%
cd /d %~dp0\htdocs\css\
call sass "../../scss/nibblepoker.scss" -q --no-source-map > "nibblepoker.css"
call sass "../../scss/nibblepoker.scss" -q --no-source-map --style compressed > "nibblepoker.min.css"
call sass "../../scss/debugger.scss" -q --no-source-map > "debugger.css"
call sass "../../scss/debugger.scss" -q --no-source-map --style compressed > "debugger.min.css"
popd
:sass-assets
echo Copying assets...
pushd %CD%
cd /d %~dp0
copy ".\bkgds\*.png" ".\htdocs\css\"
popd
:sass-end
:end