hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit 7122c725f7842690e4e21569d92c8f0e95d18d59
parent 3d2a41e7a497a71c7e35c9c3214b6df06ce27acd
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 11 Dec 2016 11:29:17 -0500

Add the `frontend` bash script

Diffstat:
M.gitignore | 1-
Afrontend | 21+++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1,6 +1,5 @@ *.orig *.db -frontend scss.sh deploy.sh templates/pandoc/* diff --git a/frontend b/frontend @@ -0,0 +1,21 @@ +#!/bin/bash + +# CSS Concatenation +cat static/dev/css/global/fonts.css \ + static/dev/css/global/normalize.css \ + static/dev/css/global/base.css \ + static/dev/css/global/helpers.css \ + static/dev/css/global/grid.css \ + static/dev/css/modules/*.css \ + > static/prod/css/styles.css && + + # CSS Minification + minify --mime=text/css < static/prod/css/styles.css > static/prod/css/styles.min.css + +# JavaScript Concatenation +cat static/dev/js/vendor/dom-utilities/dom-utilities.js \ + static/dev/js/custom/init.js \ + > static/prod/js/script.js + +# JavaScript Minification +minify --mime=text/javascript < static/prod/js/script.js > static/prod/js/script.min.js