init
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
bin/*
|
||||||
|
!bin/.gitkeep
|
11
README.md
Normal file
11
README.md
Normal 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
0
bin/.gitkeep
Normal file
15
nimproj.nimble
Normal file
15
nimproj.nimble
Normal 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
6
src/main.nim
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
proc main =
|
||||||
|
return
|
||||||
|
|
||||||
|
when isMainModule:
|
||||||
|
main()
|
1
tests/config.nims
Normal file
1
tests/config.nims
Normal file
@@ -0,0 +1 @@
|
|||||||
|
switch("path", "$projectDir/../src")
|
11
tests/test_main.nim
Normal file
11
tests/test_main.nim
Normal 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
|
Reference in New Issue
Block a user