Move all files to ssg-test/
This commit is contained in:
parent
e345d2fef7
commit
b107d814a5
12 changed files with 0 additions and 0 deletions
36
ssg-test/run
Executable file
36
ssg-test/run
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
export PATH="${PATH}:./result/bin"
|
||||
|
||||
function clean {
|
||||
rm -fr dst "${@}"
|
||||
mkdir dst
|
||||
}
|
||||
|
||||
function css-build {
|
||||
tailwindcss --config assets/tailwind.config.ts \
|
||||
--output src/css/tailwind.css "${@}"
|
||||
}
|
||||
|
||||
function generate {
|
||||
ssg "src" "dst" "Oliver Davies" "https://www.oliverdavies.uk"
|
||||
}
|
||||
|
||||
function watch {
|
||||
find src -type f | entr ./run generate
|
||||
}
|
||||
|
||||
function help {
|
||||
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
||||
|
||||
compgen -A function | grep -v "^_" | cat -n
|
||||
|
||||
printf "\nExtended help:\n Each task has comments for general usage\n"
|
||||
}
|
||||
|
||||
TIMEFORMAT="Task completed in %3lR"
|
||||
time "${@:-help}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue