feat: add Taskfile and Lefthook to project
This commit is contained in:
parent
214a34bede
commit
75baf9efb4
3 changed files with 16 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ cache
|
||||||
__pycache__
|
__pycache__
|
||||||
.direnv
|
.direnv
|
||||||
plugins
|
plugins
|
||||||
|
.env
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
python3Packages.typogrify
|
python3Packages.typogrify
|
||||||
python3Packages.livereload
|
python3Packages.livereload
|
||||||
python3Packages.invoke
|
python3Packages.invoke
|
||||||
|
rsync
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
mkdir -p plugins
|
mkdir -p plugins
|
||||||
|
|
|
@ -1,11 +1,23 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
set: [errexit, pipefail, nounset]
|
set: [errexit, pipefail, nounset]
|
||||||
shopt: [globstar]
|
shopt: [globstar]
|
||||||
tasks:
|
dotenv:
|
||||||
|
- .env
|
||||||
|
vars:
|
||||||
|
OUTPUT_PATH: ./output
|
||||||
|
DEPLOY_CMD: rsync
|
||||||
|
DEPLOY_ARGS: -avz --delete
|
||||||
|
|
||||||
|
tasks:
|
||||||
build:
|
build:
|
||||||
cmds:
|
cmds:
|
||||||
- pelican -o ./output
|
- pelican -o {{.OUTPUT_PATH}}
|
||||||
serve:
|
serve:
|
||||||
cmds:
|
cmds:
|
||||||
- invoke livereload
|
- invoke livereload
|
||||||
|
deploy:
|
||||||
|
deps:
|
||||||
|
- build
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
{{.DEPLOY_CMD}} {{.DEPLOY_ARGS}} {{.OUTPUT_PATH}} {{.HOSTNAME}}:{{.WWW_PATH}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue