diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11d39b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# ---> Vim +# swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-v][a-z] +[._]sw[a-p] +# session +Session.vim +# temporary +.netrwhist +*~ +# auto-generated tag files +tags + +# ---> Windows +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# DS-Store +**.DS_Store +*.DS_Store + +# C3WOC Website files +assets/css/main.css +assets/css/main.min.css +assets/css/ie9.css +assets/css/ie9.min.css +.sass-cache/ +assets/css/main.css.map +assets/css/ie9.css.map +assets/css/main.min.css.map +assets/css/ie9.min.css.map +tmp/ +libsass/ +sass-spec/ +sassc/ + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8fb809e --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +LEKTOR_SERVER_FLAGS=-h 127.0.0.1 + +all: build + +sass: + ./sassc/bin/sassc -t compressed ./assets/sass/main.scss ./assets/css/main.min.css + ./sassc/bin/sassc -t compressed ./assets/sass/ie9.scss ./assets/css/ie9.min.css + lektor clean --yes + lektor build + +sass-uncompressed: + ./sassc/bin/sassc ./assets/sass/main.scss ./assets/css/main.css + ./sassc/bin/sassc ./assets/sass/ie9.scss ./assets/css/ie9.css + lektor clean --yes + lektor build + +install: + if hash apt 2>/dev/null; then sudo apt update; sudo apt install imagemagick python3 python3-pip -y; elif hash pacman 2>/dev/null; then sudo pacman -Sy graphicsmagick glibc lib32-glibc python python-pip --noconfirm; elif hash dnf 2>/dev/null; then sudo dnf install -y ImageMagick python3 python3-pip; else echo -e "Please install Imagemagick, Python3 and Pip!"; fi + pip install lektor --user + make install-sassc + +install-sassc: + if [ ! -d './sassc' ]; then git clone https://github.com/sass/sassc.git sassc; . sassc/script/bootstrap ; make -C sassc -j4 ; fi + +build: sass + lektor build + +server: + lektor server $(LEKTOR_SERVER_FLAGS) +