-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathJustfile
More file actions
59 lines (45 loc) · 2.07 KB
/
Justfile
File metadata and controls
59 lines (45 loc) · 2.07 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Developer command interface for Greek Software Ecosystem (uv underneath).
# List targets: `just` or `just --list`. Install just: https://github.com/casey/just
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
# Default: show available recipes
default:
@just --list
# Install / refresh Python dependencies. CI: `just sync --frozen`
setup *ARGS:
uv sync {{ARGS}}
# Same as `setup` (common muscle memory for uv users).
sync *ARGS:
uv sync {{ARGS}}
# Fetch Workable open-role counts into _data/workable_counts.yaml (network).
fetch:
uv run python -m greek_software_ecosystem.fetch_workable_counts
# Fetch GitHub stars/forks for _data/open_source_projects.yaml → _data/open_source_github_stats.yaml (network).
fetch-open-source-stats:
uv run python -m greek_software_ecosystem.fetch_open_source_github_stats
# Regenerate docs/*.md (plus root README.md stub) from _data/readme.yaml, open_source_projects.yaml, and other YAML data.
readme:
uv run python -m greek_software_ecosystem.generate_readme
# Regenerate static HTML (open-source stars/forks come from _data/open_source_github_stats.yaml).
# Default on dev: sibling *.html + assets/ (python -m http.server). CI=true: Jekyll-style paths.
index:
uv run python -m greek_software_ecosystem.generate_index
# Refresh OSS GitHub stats YAML, then regenerate HTML (use in CI / before deploy).
index-all:
just fetch-open-source-stats
uv run python -m greek_software_ecosystem.generate_index
# Force local-style output (same as default on a dev machine; use if CI is set in your shell).
index-local:
AGTJ_LOCAL=1 uv run python -m greek_software_ecosystem.generate_index
# Force GitHub Pages / Jekyll-style output locally (dry-run deploy layout).
index-gh-pages:
AGTJ_GH_PAGES=1 uv run python -m greek_software_ecosystem.generate_index
# Regenerate generated markdown + index (no Workable fetch).
generate: readme index
# Refresh Workable snapshot, then regenerate readme, hubs, and index.
all:
just fetch
just generate
# Same checks as PR validation: regenerate readme then index (fast; no OSS GitHub fan-out).
check:
just readme
just index