mirror of
https://github.com/status-im/status-node-manager.git
synced 2025-02-19 16:04:20 +00:00
feat(NNM): Init package
This commit is contained in:
parent
afee3737a8
commit
1a11247cf7
12
.gitignore
vendored
12
.gitignore
vendored
@ -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
|
||||
|
14
nimbus_node_manager.nimble
Normal file
14
nimbus_node_manager.nimble
Normal 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"
|
7
src/nimbus_node_manager.nim
Normal file
7
src/nimbus_node_manager.nim
Normal 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())
|
6
src/nimbus_node_managerpkg/submodule.nim
Normal file
6
src/nimbus_node_managerpkg/submodule.nim
Normal 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
12
tests/test1.nim
Normal 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!"
|
Loading…
x
Reference in New Issue
Block a user