all repos — min @ 71038e1cc11d743b9540aec78db2c3dfe3bdc684

A small but practical concatenative programming language.

Documented asset bundling
h3rald h3rald@h3rald.com
Wed, 23 Dec 2020 03:55:07 +0100
commit

71038e1cc11d743b9540aec78db2c3dfe3bdc684

parent

9057f45c7c8ce39d8b2760c430a22c6cdbe6ac37

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M next-release.mdnext-release.md

@@ -4,3 +4,4 @@ * Added **require** symbol to read a min file and automatically create a module containing all symbols defined in the file.

* Added **invoke** symbol (and **\*** sigil) to easily call a symbol defined in a module or dictionary, e.g. `*mymodule/mymethod`. * Fixed library installation via nimble * Fixed error handling and stack trace for **start-server** symbol. +* Added the possibility to bundle assets in a compiled min program by specifying tbe **-a** (or **--asset-path**) option.
M site/contents/get-started.mdsite/contents/get-started.md

@@ -98,7 +98,7 @@

* No checks will be performed when defining symbols. * Only the simple REPL will be available. * There will be no support for dynamic libraries. -* The **-m, \-\-module-path** option has no effect. +* The **-m, \-\-module-path** and **-a, \-\-asset-path** options have no effect. * No environment configuration files ([.minrc](class:file), [.min_symbols](class:file)) are used. ## Running the min Shell

@@ -168,6 +168,8 @@

> %min-terminal% > > [$](class:prompt) min -c run.min -m:tasks + +Similarly, you can also bundle additional files in the executable by specifying the `-a:<path>` (or `--asset-path`) option. At runtime, the compiled min program will attempt to lookup bundled asset files before checking the filesystem. > %note% > Note