From 4cf6b96328cfa3b6acf53515d07f2630b84a4820 Mon Sep 17 00:00:00 2001 From: asandikci Date: Thu, 11 May 2023 14:47:18 +0300 Subject: [PATCH] chore: set development environment --- .cpanel.yml | 4 ++++ dev/dependecy.sh | 10 ++++++++++ dev/sass.sh | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 dev/dependecy.sh create mode 100755 dev/sass.sh diff --git a/.cpanel.yml b/.cpanel.yml index 833f0b0..c044e7b 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -3,4 +3,8 @@ deployment: tasks: - export DEPLOYPATH= ~/public_html/ - /bin/cp index.html $DEPLOYPATH + - /bin/cp links.html $DEPLOYPATH + - /bin/cp about.html $DEPLOYPATH + - /bin/cp -R assets $DEPLOYPATH + diff --git a/dev/dependecy.sh b/dev/dependecy.sh new file mode 100644 index 0000000..ae39597 --- /dev/null +++ b/dev/dependecy.sh @@ -0,0 +1,10 @@ +#!/bin/bash + + +### INSTALL SASS Compiler ### +# https://sass-lang.com/install +# https://github.com/sass/dart-sass/releases +# https://sass-lang.com/documentation/cli/dart-sass + +# Arch based distros: +sudo pacman -S sass \ No newline at end of file diff --git a/dev/sass.sh b/dev/sass.sh new file mode 100755 index 0000000..bee839c --- /dev/null +++ b/dev/sass.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Compile all scss files +sass ../assets/scss/:../assets/css/ + +# watch for scss file changes and compile them +sass --watch ../assets/scss/:../assets/css/ \ No newline at end of file