#!/usr/bin/env fish # This script is used to: # - Format SCSS, CSS, and Markdown files using `dprint` # - Compile SCSS to CSS using `grass` set -l script_path (path resolve (status filename)) set -l script_dir (path dirname "$script_path") set -l project_root (path normalize "$script_dir/../..") set -l input "$project_root/scss/ewwii.scss" set -l output "$project_root/ewwii.css" cd "$project_root" echo "Compiling SCSS..." if not grass "$input" "$output" echo "grass failed" >&2 exit 1 end echo "Formatting project..." if not dprint fmt echo "dprint failed" >&2 exit 1 end echo "Done."