feat(NNM): Init package

This commit is contained in:
Emil Ivanichkov 2024-01-09 15:29:12 +02:00
parent afee3737a8
commit 1a11247cf7
5 changed files with 51 additions and 0 deletions

12
.gitignore vendored
View File

@ -1,3 +1,15 @@
# Project
nimbus_node_manager
nimbus_node_manager.exe
# Nim cache
nimcache
# Nimble
nimble.develop
nimble.paths
config.nims
# Nix & Direnv
.direnv
result

View File

@ -0,0 +1,14 @@
# Package
version = "0.1.0"
author = "Emil Ivanichkov"
description = "Nimbus Node Manager"
license = "MIT"
srcDir = "src"
installExt = @["nim"]
bin = @["nimbus_node_manager"]
# Dependencies
requires "nim >= 1.6.14"

View File

@ -0,0 +1,7 @@
# This is just an example to get you started. A typical hybrid package
# uses this file as the main entry point of the application.
import nimbus_node_managerpkg/submodule
when isMainModule:
echo(getWelcomeMessage())

View File

@ -0,0 +1,6 @@
# This is just an example to get you started. Users of your hybrid library will
# import this file by writing ``import nimbus_node_managerpkg/submodule``. Feel free to rename or
# remove this file altogether. You may create additional modules alongside
# this file as required.
proc getWelcomeMessage*(): string = "Hello, World!"

12
tests/test1.nim Normal file
View File

@ -0,0 +1,12 @@
# 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
import nimbus_node_managerpkg/submodule
test "correct welcome":
check getWelcomeMessage() == "Hello, World!"