mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
019df9573e
* Add .travis.yml * Add travis tester script * Update .gitignore with test output related directive
48 lines
1.2 KiB
Bash
Executable File
48 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
|
|
# ==============================================================================
|
|
# FUNCTIONS - START
|
|
# ==============================================================================
|
|
|
|
run_it()
|
|
{
|
|
|
|
local _src="${1-bulma.sass}"
|
|
local _dest="${2-$(dirname "${BASH_SOURCE[0]}")/output/$(basename ${_src}).css}"
|
|
local _options="${3---sourcemap=none}"
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
local _dest_dir="$(dirname "${_dest}")"
|
|
|
|
if [ ! -d "${_dest_dir}" ]; then
|
|
|
|
mkdir -p "${_dest_dir}"
|
|
|
|
fi
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
sass "${_src}" "${_dest}" ${_options}
|
|
|
|
}
|
|
# run_it()
|
|
|
|
# ==============================================================================
|
|
# FUNCTIONS - END
|
|
# ==============================================================================
|
|
|
|
|
|
|
|
# ==============================================================================
|
|
# EXECUTION - START
|
|
# ==============================================================================
|
|
|
|
run_it $@
|
|
|
|
# ==============================================================================
|
|
# EXECUTION - END
|
|
# ==============================================================================
|