mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
27 lines
491 B
Bash
27 lines
491 B
Bash
#!/bin/sh
|
|
|
|
#
|
|
# Configuration
|
|
#
|
|
|
|
# sass source
|
|
|
|
SASS_SOURCE_PATH="scss"
|
|
|
|
# sass options
|
|
SASS_OPTIONS="--source-map=true --style=nested"
|
|
|
|
# css target
|
|
CSS_TARGET_PATH="css-compiled"
|
|
|
|
#
|
|
# Check prerequisites
|
|
#
|
|
wtfile=$(command -v wt) || { echo "install wellington with 'brew install wellington"; exit 1; }
|
|
|
|
#
|
|
# Watch folder for changes
|
|
#
|
|
cd -P `pwd`
|
|
$wtfile compile "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS
|
|
$wtfile watch "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS
|