This commit is contained in:
2025-09-02 08:24:54 +02:00
commit 0b9df128b7
7 changed files with 47 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
bin/*
!bin/.gitkeep

11
README.md Normal file
View File

@@ -0,0 +1,11 @@
## Nimpro
A little template for Nim projects.
## Testing
In order to test the project run:
```
nimble test
```

0
bin/.gitkeep Normal file
View File

15
nimproj.nimble Normal file
View File

@@ -0,0 +1,15 @@
# Package
version = "0.1.0"
author = ""
description = ""
license = "MIT"
bin = @["main"]
srcDir = "src"
binDir = "bin"
installExt = @["nim"]
# Dependencies
requires "nim >= 2.0.8"

6
src/main.nim Normal file
View File

@@ -0,0 +1,6 @@
proc main =
return
when isMainModule:
main()

1
tests/config.nims Normal file
View File

@@ -0,0 +1 @@
switch("path", "$projectDir/../src")

11
tests/test_main.nim Normal file
View File

@@ -0,0 +1,11 @@
# This is just an example to get you started. You may wish to put all of your
# tests into a single file, or separate them into multiple `test1`, `test2`
# etc. files (better names are recommended, just make sure the name starts with
# the letter 't').
#
# To run these tests, simply execute `nimble test`.
import unittest
test "assert the truth":
check true