23
Makefile
23
Makefile
@@ -1,8 +1,8 @@
|
||||
.PHONY: default update update-inter update-photoswipe format
|
||||
.PHONY: default update update-inter node-modules format
|
||||
|
||||
default:
|
||||
default: node-modules
|
||||
|
||||
update: update-inter update-photoswipe format
|
||||
update: update-inter format
|
||||
|
||||
update-inter:
|
||||
@tmp_zip=$$(mktemp) && \
|
||||
@@ -16,19 +16,10 @@ update-inter:
|
||||
cp -r $$tmp_dir/web/{InterVariable*.woff2,Inter-*.woff2} static/font/inter && \
|
||||
rm -rf $$tmp_zip $$tmp_dir
|
||||
|
||||
update-photoswipe:
|
||||
@tmp_zip=$$(mktemp) && \
|
||||
tmp_dir=$$(mktemp -d) && \
|
||||
curl -s https://api.github.com/repos/dimsemenov/photoswipe/releases/latest \
|
||||
| jq -r '.zipball_url' \
|
||||
| xargs curl -Ls -o $$tmp_zip && \
|
||||
unzip -q -o $$tmp_zip -d $$tmp_dir && \
|
||||
rm -rf assets/js/photoswipe assets/css/photoswipe && \
|
||||
mkdir -p assets/js/photoswipe assets/css/photoswipe && \
|
||||
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe-lightbox.esm.js assets/js/photoswipe && \
|
||||
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe.esm.js assets/js/photoswipe && \
|
||||
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe.css assets/css/photoswipe && \
|
||||
rm -rf $$tmp_zip $$tmp_dir
|
||||
node-modules:
|
||||
npm install && \
|
||||
cd ../.. && \
|
||||
ln -s ./themes/caldwell/node_modules node_modules
|
||||
|
||||
format:
|
||||
nix fmt
|
||||
|
Reference in New Issue
Block a user