aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-01-10 20:23:00 -0500
committerJesús <heckyel@hyperbola.info>2019-01-10 20:23:00 -0500
commit882d9d10def8c49b3eeb548d17462933fa2c5048 (patch)
tree6b6f5604d082daca254576c81a4788f7ee528944 /scripts
downloadlidra-882d9d10def8c49b3eeb548d17462933fa2c5048.tar.lz
lidra-882d9d10def8c49b3eeb548d17462933fa2c5048.tar.xz
lidra-882d9d10def8c49b3eeb548d17462933fa2c5048.zip
first commit
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bulma.sh66
-rw-r--r--scripts/libresocial.sh66
-rw-r--r--scripts/style.sh47
3 files changed, 179 insertions, 0 deletions
diff --git a/scripts/bulma.sh b/scripts/bulma.sh
new file mode 100644
index 0000000..17f7565
--- /dev/null
+++ b/scripts/bulma.sh
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+# ==============================================================================
+# FUNCTIONS - START
+# ==============================================================================
+
+run_it()
+{
+
+ local _name="${1-bulma}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/sass/base/${_name}.sass" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _dest_dir="$(dirname "${_dest}")"
+
+ if [ ! -d "${_dest_dir}" ]; then
+
+ mkdir -p "${_dest_dir}"
+
+ fi
+
+ # ----------------------------------------------------------------------------
+ sass "${_src}":"${_dest}" "${_options}"
+
+}
+
+run_compress()
+{
+
+ local _name="${1-bulma}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/sass/base/${_name}.sass" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _dest_dir="$(dirname "${_dest}")"
+
+ if [ ! -d "${_dest_dir}" ]; then
+
+ mkdir -p "${_dest_dir}"
+
+ fi
+
+ # ----------------------------------------------------------------------------
+ sass "${_src}":"${_dest}" "${_options}" -t compressed
+
+}
+# ==============================================================================
+# FUNCTIONS - END
+# ==============================================================================
+
+# ==============================================================================
+# EXECUTION - START
+# ==============================================================================
+
+run_it "$@" && run_compress "$@"
+
+# ==============================================================================
+# EXECUTION - END
+# ==============================================================================
diff --git a/scripts/libresocial.sh b/scripts/libresocial.sh
new file mode 100644
index 0000000..9201ded
--- /dev/null
+++ b/scripts/libresocial.sh
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+# ==============================================================================
+# FUNCTIONS - START
+# ==============================================================================
+
+run_it()
+{
+ local _name="${1-libresocial}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/scss/${_name}.scss" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _dest_dir="$(dirname "${_dest}")"
+
+ if [ ! -d "${_dest_dir}" ]; then
+
+ mkdir -p "${_dest_dir}"
+
+ fi
+
+ # ----------------------------------------------------------------------------
+
+ sass "${_src}":"${_dest}" "${_options}"
+
+}
+
+run_compress()
+{
+
+ local _name="${1-libresocial}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/scss/${_name}.scss" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _dest_dir="$(dirname "${_dest}")"
+
+ if [ ! -d "${_dest_dir}" ]; then
+
+ mkdir -p "${_dest_dir}"
+
+ fi
+
+ # ----------------------------------------------------------------------------
+ sass "${_src}":"${_dest}" "${_options}" -t compressed
+
+}
+# ==============================================================================
+# FUNCTIONS - END
+# ==============================================================================
+
+# ==============================================================================
+# EXECUTION - START
+# ==============================================================================
+
+run_it "$@" && run_compress "$@"
+
+# ==============================================================================
+# EXECUTION - END
+# ==============================================================================
diff --git a/scripts/style.sh b/scripts/style.sh
new file mode 100644
index 0000000..8c7aaf3
--- /dev/null
+++ b/scripts/style.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# ==============================================================================
+# FUNCTIONS - START
+# ==============================================================================
+
+run_it()
+{
+
+ local _name="${1-style}"
+ local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
+ local _src="${_dir%scripts}/src/sass/custom/${_name}.sass" # input
+ local _dest="${_dir%scripts}/dist/css/${_name}.css" # output
+ local _options="${3---sourcemap=none}"
+
+ # ----------------------------------------------------------------------------
+ local _dest_dir
+ _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
+# ==============================================================================