Merge branch 'master' of github.com:h3rald/min
h3rald h3rald@h3rald.com
Sun, 29 Nov 2020 09:37:33 +0000
5 files changed,
15 insertions(+),
6 deletions(-)
M
core/consts.nim
→
core/consts.nim
@@ -3,4 +3,3 @@ pkgName* = "min"
pkgVersion* = "0.22.0" pkgAuthor* = "Fabio Cevasco" pkgDescription* = "A tiny concatenative programming language and shell." -
M
min.nimble
→
min.nimble
@@ -13,15 +13,16 @@
# Dependencies requires "nim >= 1.4.0" -requires "nifty" before install: + exec "nimble install -y nifty" + exec "nifty remove -f" exec "nifty install" # Tasks const - compile = "nim c -d:release" + compile = "nim c -d:release --opt:size" linux_x64 = "--cpu:amd64 --os:linux --passL:-static" windows_x64 = "--cpu:amd64 --os:windows" macosx_x64 = ""
M
site/contents/download.md
→
site/contents/download.md
@@ -17,10 +17,18 @@ {{guide-download}}
## Building from Source -Alternatively, you can build min from source as follows: +Alternatively, you can build min from source in one of the following ways: + +### Using nimble + +If you already installed [nim](https://nim-lang.org), you probably already have the [nimble](https://github.com/nim-lang/nimble) package manager installed. + +If that's the case, simply run **nimble install min**. This will actually install and run [nifty](https://github.com/h3rald/nifty) which will download min dependencies for you before compiling. + +### Without using nimble 1. Download and install [nim](https://nim-lang.org). -2. Download and build [Nifty](https://github.com/h3rald/nifty), and put the nifty executable somewhere in your [$PATH](class:kwd). +2. Download and build [nifty](https://github.com/h3rald/nifty), and put the nifty executable somewhere in your [$PATH](class:kwd). 3. Clone the min [repository](https://github.com/h3rald/min). 4. Navigate to the min repository local folder. 5. Run **nifty install** to download min’s dependencies.
M
site/contents/reference-http.md
→
site/contents/reference-http.md
@@ -19,7 +19,7 @@ > >
> > The following code constructs a {{req}} dictionary and passes it to the **request** operator to perform an HTTP GET request to <http://httpbin.org/ip>: > > > > {} -> > "GET" %method) +> > "GET" %method > > "http://httpbin.org/ip" %url > > request #}