Skip to content

Commit

Permalink
add a Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbe98 committed Jun 5, 2024
1 parent 48bbd0f commit cd320af
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Govdirectory is a static site meaning that it already has all of its pages gener

Because each initial build of Snowman issues thousands (yes thousands) of SPARQL queries one should never make an **initial** build against `query.wikidata.org` but rather against a local Wikidata Query Service (WDQS) instance. However, because setting up a WDQS instance is nontrivial we provide a copy of a [Snowman build cache directory](https://github.com/govdirectory/website-cache). If in use, this will ensure Snowman only queries Wikidata when a query is updated.

> [!TIP]
> Some of the most common development commands are available through our [Justfile](https://github.com/casey/just)
### Prerequisites

- [Git](https://git-scm.com/)
Expand Down
18 changes: 18 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@_default:
just --list

build:
snowman build --timeit

build-serve:
snowman build --timeit && snowman server

build-static:
snowman build --static

clear-query-cache:
snowman cache --invalidate

bootstrap-cache:
git clone https://github.com/govdirectory/website-cache .snowman

0 comments on commit cd320af

Please sign in to comment.