Added support for nifty package manager.
h3rald h3rald@h3rald.com
Sat, 19 Nov 2016 22:19:23 +0100
3 files changed,
59 insertions(+),
5 deletions(-)
M
hastysite.nim
→
hastysite.nim
@@ -1,7 +1,6 @@
import json, strutils, - yaml, pegs, os, securehash,@@ -11,12 +10,19 @@ critbits,
streams, logging -import - minim, - vendor/moustachu, - hastyscribe +when defined(nifty): + import + packages/NimYaml/yaml, + packages/minim/minim, + packages/hastyscribe/hastyscribe +else: + import + yaml, + minim, + hastyscribe import + vendor/moustachu, config type
A
nifty.json
@@ -0,0 +1,47 @@
+{ + "storage": "packages", + "commands": + { + "install": + { + "git+src": + { + "cmd": "git clone {{src}} --depth 1" + }, + "git+src+tag": + { + "cmd": "git clone --branch {{tag}} {{src}} --depth 1" + } + }, + "update": + { + "git+name": + { + "cmd": "git pull", + "pwd": "{{name}}" + } + } + }, + "packages": + { + "yaml": + { + "name": "yaml", + "git": true, + "src": "https://github.com/flyx/NimYAML.git", + "tag": "v0.8.0" + }, + "hastyscribe": + { + "name": "hastyscribe", + "git": true, + "src": "https://github.com/h3rald/hastyscribe.git" + }, + "minim": + { + "name": "minim", + "git": true, + "src": "https://github.com/h3rald/minim.git" + } + } +}