Commit fcef42e
committed
feat!: migrating from Makefile to Just
Apologies about the unrequested change. Opening this as **demo** one of
some QoL improvement suggestions for @nellshamrell . It's up to you all
do decide :)
## Migrate from Makefile to Justfile
This PR converts the existing Makefile to a Justfile for improved
developer experience and modern tooling.
### Changes Made
**Core Migration:**
- Converted all Make targets to Just recipes with equivalent
functionality
- Updated syntax from Make to Just format (removed `#!/bin/sh`, updated
variable references)
- Replaced `$(shell pwd)` with `{{justfile_directory()}}` for path
resolution
- **All original functionalities preserved** - no behavioral changes to
existing workflows
**Enhanced User Experience:**
- Added `help` recipe that displays all available commands with
descriptions
- Improved recipe descriptions for better clarity in help output
- Added project title and essential user information
**Container Runtime:**
- Renamed `build` → `docker-build` for explicit Docker usage
- Fixed directory creation before container execution to prevent volume
mount errors
**Documentation Updates:**
- Updated README.md to reference [Just](https://just.systems/) instead
of Make
- Changed all command examples from `make` to `just`
### Testing
- **Verified `just website` works end-to-end**: Successfully generated
625 articles and hosted local server on port 8000
- **Verified `just email` works end-to-end**: Successfully generated
email template `622-2025-10-22-email.html`
- **Verified individual email commands**: Both `just generate-email` and
`just optimize-email` work correctly as standalone operations
- **Verified clean operations**: Both `just clean-website` and `just
clean-email` work correctly
- All container operations function correctly with the new justfile
syntax
### Usage
```bash
# Show all available commands
just help
# Main workflows (same as before)
just website # Generate and host website locally
just email # Generate and optimize email template
just copy-website-contents # Sync to github.io repo
# Container build
just docker-build # Build Docker image
```
### Benefits
- **Better UX**: Built-in help system with clear command descriptions
- **Modern tooling**: Just provides better syntax and features than Make
- **Improved reliability**: Fixed volume mounting issues
- **Full compatibility**: All existing workflows remain unchanged
All existing workflows remain unchanged - users can simply replace
`make` with `just` in their commands.
Signed-off-by: andreacfromtheapp <[email protected]>1 parent 165f175 commit fcef42e
3 files changed
+45
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
| 10 | + | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| 39 | + | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | | - | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
| 53 | + | |
44 | 54 | | |
45 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | | - | |
| 59 | + | |
48 | 60 | | |
49 | | - | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
| 69 | + | |
56 | 70 | | |
57 | 71 | | |
58 | | - | |
| 72 | + | |
59 | 73 | | |
60 | | - | |
| 74 | + | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
67 | 81 | | |
68 | | - | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | | - | |
| 85 | + | |
| 86 | + | |
71 | 87 | | |
72 | | - | |
| 88 | + | |
73 | 89 | | |
74 | 90 | | |
| 91 | + | |
75 | 92 | | |
76 | 93 | | |
77 | | - | |
| 94 | + | |
0 commit comments