39 lines
720 B
Plaintext
39 lines
720 B
Plaintext
|
---
|
||
|
to: <%= year %>/Taskfile.yaml
|
||
|
---
|
||
|
# https://taskfile.dev
|
||
|
|
||
|
version: "3"
|
||
|
|
||
|
vars:
|
||
|
YEAR: <%= year %>
|
||
|
DAY:
|
||
|
sh: date '+%d' | perl -pe's/^0//'
|
||
|
DAY_FORMATTED:
|
||
|
sh: date '+%d'
|
||
|
|
||
|
tasks:
|
||
|
aoc-cli:install: cargo install aoc-cli
|
||
|
|
||
|
"precommit:init": pre-commit install -t pre-merge-commit -t pre-push
|
||
|
|
||
|
integrate:
|
||
|
cmds:
|
||
|
- git is-clean
|
||
|
- git co main
|
||
|
- git weld -
|
||
|
|
||
|
lint:fix:
|
||
|
cmds:
|
||
|
- npx prettier --write {{.CLI_ARGS | default "." }}
|
||
|
|
||
|
page:
|
||
|
cmds:
|
||
|
- firefox https://adventofcode.com/{{.YEAR}}/day/{{.DAY}}
|
||
|
|
||
|
download:
|
||
|
cmds:
|
||
|
- hygen day new --day {{.DAY_FORMATTED}}
|
||
|
- aoc download -d {{.DAY}} -o -p {{.DAY_FORMATTED}}/puzzle.md -i {{.DAY_FORMATTED}}/input
|
||
|
|