all repos — hastysite @ 7fbf9520a21f69f0d0fc38062418db95e8cca6f6

A high-performance static site generator.

Added support for nifty package manager.
h3rald h3rald@h3rald.com
Sat, 19 Nov 2016 22:19:23 +0100
commit

7fbf9520a21f69f0d0fc38062418db95e8cca6f6

parent

a67f04506f3f1b2437a675327cb9a2c4f8adc838

3 files changed, 59 insertions(+), 5 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,2 +1,3 @@

nimcache/ hastysite +packages/
M hastysite.nimhastysite.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" + } + } +}