-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
85 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Api.fnl | ||
|
||
**Table of contents** | ||
|
||
- [`compile-all-files`](#compile-all-files) | ||
|
||
## `compile-all-files` | ||
Function signature: | ||
|
||
``` | ||
(compile-all-files dir) | ||
``` | ||
|
||
Compiles all files in the given dir (optional), defaulting to the current working directory. Returns a sequential table with each of the files compilation result. | ||
|
||
Will do nothing if you execute it on a directory that doesn't contain an nfnl configuration file. | ||
|
||
|
||
<!-- Generated with Fenneldoc v1.0.1 | ||
https://gitlab.com/andreyorst/fenneldoc --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(local {: autoload} (require :nfnl.module)) | ||
(local compile (autoload :nfnl.compile)) | ||
(local config (autoload :nfnl.config)) | ||
|
||
(fn compile-all-files [dir] | ||
"Compiles all files in the given dir (optional), defaulting to the current working directory. Returns a sequential table with each of the files compilation result. | ||
Will do nothing if you execute it on a directory that doesn't contain an nfnl configuration file." | ||
(let [dir (or dir (vim.fn.getcwd)) | ||
{: config : root-dir : cfg} (config.find-and-load dir)] | ||
(when config | ||
(compile.all-files {: root-dir : cfg})))) | ||
|
||
{: compile-all-files} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.