create-a-static-blog-with-nix/justfile

23 lines
641 B
Makefile

# The default command to run when ran with just 'just'
[group('General')]
default: help
# Print the available commands
[group('General')]
help:
@just --list
# Update project dependencies
[group('General')]
update: _update-eleventy
nix flake update
# Update packages sha256 and version
_update-eleventy:
#!/bin/bash
pkgs=$(pwd)/pkgs
cd $(mktemp -d)
curl -f https://raw.githubusercontent.com/11ty/eleventy/refs/heads/main/package-lock.json -o package-lock.json
prefetch-npm-deps package-lock.json > $pkgs/11ty-eleventy.sha256
cat package-lock.json | jq --raw-output ".version" > $pkgs/11ty-eleventy.version