more performant install of 3rd party dependency google-material-icons
This commit is contained in:
@@ -40,23 +40,18 @@ clean:
|
||||
installDependencies:
|
||||
if [ ! -d "submodules" ]; then mkdir submodules; fi
|
||||
# - nodejs
|
||||
# - maybye needed to get latest nodejs version for some features
|
||||
# if [ ! -d "submodules/node" ]; then cd submodules; git clone https://github.com/nodejs/node.git; fi
|
||||
# cd submodules/node; git fetch; git checkout v22.12.0; ./configure; make -j4;
|
||||
# - bulma
|
||||
# - bulma.css
|
||||
# if [ ! -d "submodules/bulma" ]; then cd submodules; git clone https://github.com/jgthms/bulma; fi
|
||||
# cd submodules/bulma; git fetch; git checkout 1.0.2;
|
||||
# - bulma templates
|
||||
# if [ ! -d "submodules/bulma-templates" ]; then cd submodules; git clone https://github.com/BulmaTemplates/bulma-templates; fi
|
||||
# cd submodules/bulma-templates; git fetch; git checkout 0.9.4.2;
|
||||
# - materialize-css
|
||||
if [ ! -d "submodules/materialize" ]; then cd submodules; git clone https://github.com/materializecss/materialize; fi
|
||||
cd submodules/materialize; git fetch; git checkout $(VERSION_MATERIALIZE); npm install; npm audit fix; npm run release;
|
||||
# - google material icons
|
||||
if [ ! -d "submodules/material-design-icons" ]; then cd submodules; git clone --filter=tree:0 https://github.com/google/material-design-icons.git; fi
|
||||
cd submodules/material-design-icons; git fetch; git checkout $(VERSION_GOOGLE_MATERIAL_ICONS);
|
||||
mkdir -p submodules/google-material-icons
|
||||
if [ ! -f submodules/google-material-icons/$(GOOGLE_MATERIAL_ICONS_VERSION).tar.gz ]; then wget --directory-prefix=submodules/google-material-icons $(GOOGLE_MATERIAL_ICONS_URL)/archive/refs/tags/$(GOOGLE_MATERIAL_ICONS_VERSION).tar.gz; fi
|
||||
cd submodules/google-material-icons; tar zxf $(GOOGLE_MATERIAL_ICONS_VERSION).tar.gz material-design-icons-$(GOOGLE_MATERIAL_ICONS_VERSION)/font
|
||||
# - lazyload (load small sized placeholder image before loading large full quality image)
|
||||
if [ ! -d "submodules/lazysizes" ]; then cd submodules git clone https://github.com/aFarkas/lazysizes.git; fi
|
||||
if [ ! -d "submodules/lazysizes" ]; then cd submodules; git clone https://github.com/aFarkas/lazysizes.git; fi
|
||||
cd submodules/lazysizes; git checkout $(VERSION_LAZYSIZES)
|
||||
|
||||
|
||||
@@ -125,6 +120,7 @@ dist: all
|
||||
# fonts
|
||||
mkdir -p $(distDir)/httpdocs/ressourcen/fonts
|
||||
find ./res/fonts -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/fonts \;
|
||||
find ./submodules/google-material-icons/material-design-icons-$(GOOGLE_MATERIAL_ICONS_VERSION)/font/ -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/fonts \;
|
||||
|
||||
# htaccess
|
||||
$(LN) ./src/htaccess/heliohost/.htaccess $(distDir)/httpdocs/.htaccess
|
||||
|
||||
@@ -7,7 +7,8 @@ pandocTemplate = pandocTemplate/materialize-parallax.pandocTemplate
|
||||
# versions (git branches) to use
|
||||
VERSION_MATERIALIZE = v2.1.1
|
||||
# version of google material icons to use
|
||||
VERSION_GOOGLE_MATERIAL_ICONS = 4.0.0
|
||||
GOOGLE_MATERIAL_ICONS_URL = https://github.com/google/material-design-icons
|
||||
GOOGLE_MATERIAL_ICONS_VERSION = 4.0.0
|
||||
# version for lazysizes
|
||||
VERSION_LAZYSIZES = 5.3.1
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB |
Reference in New Issue
Block a user