-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (39 loc) · 737 Bytes
/
justfile
File metadata and controls
44 lines (39 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# List all of the commands
default:
@just --list
# bun run dev
run:
bun run dev
# bun run build
build:
bun run build
# bunx prettier
format:
bunx prettier --write src/components src/pages src/layouts
pre-commit:
just format
# Create the template for a new blog post
new title:
#!/usr/bin/env bash
mkdir -p src/content/blog/{{title}}
tee src/content/blog/{{title}}/index.mdx <<EOF
---
title: $( echo {{title}} | cut -c12-)
description:
author: Sam Edwardes
date: $(echo {{title}} | cut -c1-10)
tags:
- tools
- python
- r
- quarto
- outdoors
- blog
- astro
- data
- linux
- command line
- homelab
- infrastructure
---
EOF