~subsetpark/bagatto

ref: 4fc04b3afee0f496217a3243a75f75d51d5b64f1 bagatto/project.janet -rw-r--r-- 892 bytes
4fc04b3a — Zach Smith Add render some 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(declare-project
  :name "bagatto" # required
  :description "an extensible, transparent static site generator"
  :dependencies ["https://github.com/andrewchambers/janet-sh.git"
                 "https://git.sr.ht/~bakpakin/temple"
                 "https://github.com/pyrmont/markable"
                 "https://github.com/janet-lang/path.git"
                 "https://github.com/andrewchambers/janet-jdn.git"
                 "https://github.com/janet-lang/json.git"
                 "https://github.com/janet-lang/argparse.git"
                 "https://github.com/pyrmont/testament"
                 "https://git.sr.ht/~subsetpark/mago"])

(def *static-build* (= (or (os/getenv "BAG_STATIC_BUILD") "0") "1"))

(declare-executable
  :name "bag"
  :entry "main.janet"
  :lflags (if *static-build* ["-static"] [])
  :install true)

(declare-source
  :source ["bagatto.janet" "repl.janet"])