Added nakefile, updated README.
h3rald h3rald@h3rald.com
Sun, 12 Nov 2017 16:38:34 +0100
2 files changed,
74 insertions(+),
2 deletions(-)
M
README.md
→
README.md
@@ -1,2 +1,16 @@
-# hastysite -A small but powerful static site generator +# HastySite + +HastySite is a minimalist but powerful static site generator written in [Nim](https://nim-lang.org) which aims to be fast at processing content and highly configurable to suit your own needs. + +## Key Features + +* Built-in rich markdown support via [HastyScribe](https://h3rald.com/hastyscribe). +* Built-in [mustache](https://mustache.github.io/) support for page templates. +* Limited support for standard [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables). +* Fully configurable content and asset processing pipeline, using the [min](https://min-lang.org) programming language. +* Custom script definition, using the [min](https://min-lang.org) programming language. +* Default stylesheet and fonts from [HastyScribe](https://h3rald.com/hastyscribe). +* Default scripts and rules to get started quickly. +* All packed in a single executable file, with no dependencies, available for the most common desktop platforms. + +For more information, see the [HastySite Web Site](https://hastysite.h3rald.com) or the [HastySite User Guide](https://h3rald.com/hastysite/HastySite_UserGuide.htm)
A
nakefile.nim
@@ -0,0 +1,58 @@
+import + nake + +import + core/consts + +const + compile = "nim c -d:release" + linux_x86 = "--cpu:i386 --os:linux" + linux_x64 = "--cpu:amd64 --os:linux" + linux_arm = "--cpu:arm --os:linux" + windows_x64 = "--cpu:amd64 --os:windows" + macosx_x64 = "" + #parallel = "--parallelBuild:1 --verbosity:3" + hs = "hastysite" + hs_file = "hastysite.nim" + zip = "zip -X" + +proc filename_for(os: string, arch: string): string = + return "min" & "_v" & version & "_" & os & "_" & arch & ".zip" + +task "windows-x64-build", "Build min for Windows (x64)": + direshell compile, windows_x64, hs_file + +task "linux-x86-build", "Build min for Linux (x86)": + direshell compile, linux_x86, hs_file + +task "linux-x64-build", "Build min for Linux (x64)": + direshell compile, linux_x64, hs_file + +task "linux-arm-build", "Build min for Linux (ARM)": + direshell compile, linux_arm, hs_file + +task "macosx-x64-build", "Build min for Mac OS X (x64)": + direshell compile, macosx_x64, hs_file + +task "release", "Release min": + echo "\n\n\n WINDOWS - x64:\n\n" + runTask "windows-x64-build" + direshell zip, filename_for("windows", "x64"), hs & ".exe" + direshell "rm", hs & ".exe" + echo "\n\n\n LINUX - x64:\n\n" + runTask "linux-x64-build" + direshell zip, filename_for("linux", "x64"), hs + direshell "rm", hs + echo "\n\n\n LINUX - x86:\n\n" + runTask "linux-x86-build" + direshell zip, filename_for("linux", "x86"), hs + direshell "rm", hs + echo "\n\n\n LINUX - ARM:\n\n" + runTask "linux-arm-build" + direshell zip, filename_for("linux", "arm"), hs + direshell "rm", hs + echo "\n\n\n MAC OS X - x64:\n\n" + runTask "macosx-x64-build" + direshell zip, filename_for("macosx", "x64"), hs + direshell "rm", hs + echo "\n\n\n ALL DONE!"