~xigoi/xidoc

ref: 0a71cb4eb96ef60fd3de254efbb5732518bcc691 xidoc/xidoc.nimble -rw-r--r-- 612 bytes
0a71cb4eAdam Blažek Description list 4 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
24
25
26
27
# Package

version       = "2022.9.6"
author        = "Adam Blažek"
description   = "A consistent markup language"
license       = "GPL-3.0-only"
srcDir        = "src"
installExt    = @["nim"]
bin           = @["xidoc"]


# Dependencies

requires "nim >= 1.4.8"

requires "cligen >= 1.5.12"
requires "matext >= 2022.9.3"
requires "npeg >= 0.24.1"


# Tasks

task mjs, "Compile to JavaScript to be used in the playground":
  exec "nimble js -d:release --out:docs/xidoc.js src/xidoc.nim"
  echo "Minifying with terser"
  exec "terser docs/xidoc.js -o docs/xidoc.min.js --compress --mangle --module"
  echo "Done"