~xigoi/xidoc

ref: cc1d22ea297368ee73fe0e53c966c96cad362eda xidoc/xidoc.nimble -rw-r--r-- 613 bytes
cc1d22eaAdam Blažek 2022.9.19 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.19"
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"