Add makefile for css
This commit is contained in:
parent
5b8cbc4035
commit
c11e82b04d
2 changed files with 84 additions and 0 deletions
54
.gitignore
vendored
Normal file
54
.gitignore
vendored
Normal file
|
@ -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/
|
||||
|
30
Makefile
Normal file
30
Makefile
Normal file
|
@ -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)
|
||||
|
Loading…
Reference in a new issue