Fix sass compile tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
29ec58f1b5
commit
53c0fe6e23
|
@ -24,7 +24,12 @@ mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3
|
|||
|
||||
# create scss test
|
||||
mkdir -p tests/css
|
||||
cat core/css/variables.scss core/css/*.scss | ./build/bin/node-sass > tests/css/combined.css
|
||||
for SCSSFILE in core/css/*.scss
|
||||
do
|
||||
FILE=$(basename $SCSSFILE)
|
||||
FILENAME="${FILE%.*}"
|
||||
printf "@import 'variables.scss'; @import '${FILE}';" | ./build/bin/node-sass --include-path core/css/ > tests/css/${FILE}.css
|
||||
done
|
||||
|
||||
KARMA="$PREFIX/node_modules/karma/bin/karma"
|
||||
|
||||
|
|
Loading…
Reference in New Issue