mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 09:39:25 +01:00
Improve min* scripts, add a new subdomain: https://etc.ari-web.xyz/
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
63f4c3bdc7
commit
8441a4e6ac
7 changed files with 9 additions and 7 deletions
3
Makefile
3
Makefile
|
@ -6,11 +6,12 @@ netlifyapis:
|
|||
|
||||
clean:
|
||||
[ -z "${CI}" ] || rm -rfv requirements.txt \
|
||||
runtime.txt \
|
||||
README.md \
|
||||
git.sh \
|
||||
scripts \
|
||||
.vscode \
|
||||
.github \
|
||||
.github
|
||||
|
||||
netlify: build netlifyapis clean
|
||||
|
||||
|
|
|
@ -79,3 +79,4 @@ how much per avg sites are using:
|
|||
- https://school.ari-web.xyz/ (source: proprietary (I don't want people snooping on my homework lol))
|
||||
- https://user.ari-web.xyz/ (source: https://user.ari-web.xyz/git)
|
||||
- https://3.ari-web.xyz/ (source: https://3.ari-web.xyz/git)
|
||||
- https://etc.ari-web.xyz/ (source: https://etc.ari-web.xyz/git)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<meta name="description" content="My personal website" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="website, webdev, linux, programming, ari, terminal, dark, blog, javascript, opensource, free"
|
||||
content="website, webdev, linux, programming, ari, ari-web, Ari Archer, terminal, dark, blog, javascript, opensource, free"
|
||||
/>
|
||||
<meta
|
||||
name="robots"
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
main() {
|
||||
echo '>> Removing all .min.css files'
|
||||
find content/ -name '*.min.css' -type f -exec rm -rfv {} \;
|
||||
find content/ -not -ipath "./node_modules/*" -name '*.min.css' -type f -exec rm -rfv {} \;
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
@ -6,7 +6,7 @@ main() {
|
|||
if [ "$CI" ]; then
|
||||
echo 'Minifying all HTML'
|
||||
|
||||
find . -type f -name "*.html" \
|
||||
find . -not -ipath "./node_modules/*" -type f -name "*.html" \
|
||||
-exec html-minifier --collapse-whitespace --collapse-inline-tag-whitespace --remove-tag-whitespace -o {}.min {} \; \
|
||||
-exec rm {} \; \
|
||||
-exec mv {}.min {} \; \
|
||||
|
|
|
@ -6,7 +6,7 @@ main() {
|
|||
if [ "$CI" ]; then
|
||||
echo 'Minifying all JavaScript'
|
||||
|
||||
find content/js/ -type f \
|
||||
find content/js/ -not -ipath "./node_modules/*" -type f \
|
||||
-name "*.js" ! -name "*.min.*" ! -name "vfs_fonts*" \
|
||||
-exec uglifyjs --compress sequences=true,conditionals=true,booleans=true -o {}.min {} \; \
|
||||
-exec rm {} \; \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
|
||||
main() {
|
||||
for file in $(find content/ -name '*.scss' -type f); do
|
||||
for file in $(find content/ -not -ipath "./node_modules/*" -name '*.scss' -type f); do
|
||||
bnam="${file##*/}"
|
||||
out="${file%/*}/${bnam%.*}.min.css"
|
||||
|
||||
|
@ -19,7 +19,7 @@ main() {
|
|||
wait
|
||||
|
||||
echo " >> Removing residuals"
|
||||
find content/ -name '_*.min.css' -or \
|
||||
find content/ -not -ipath "./node_modules/*" -name '_*.min.css' -or \
|
||||
-name '*.sass.css' -type f -exec rm -rfv {} \;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue