initial commit
This commit is contained in:
parent
5b1294d5ae
commit
616d834838
10 changed files with 99 additions and 0 deletions
21
project/LICENSE
Normal file
21
project/LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Colin Yates
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
13
project/docker_nim_dev_example.nimble
Normal file
13
project/docker_nim_dev_example.nimble
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Colin Yates"
|
||||
description = "A new awesome nimble package"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
bin = @["docker_nim_dev_example"]
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 0.18.0"
|
||||
requires "zip"
|
||||
14
project/src/docker_nim_dev_example.nim
Normal file
14
project/src/docker_nim_dev_example.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os, zip/zipfiles
|
||||
|
||||
# Hello Nim!
|
||||
echo "Hello, World!"
|
||||
|
||||
proc createZip(rootDir: string) =
|
||||
let filename = rootDir / "out.gz"
|
||||
var z: ZipArchive
|
||||
discard open(z, filename, fmWrite)
|
||||
for x in walkDirRec(rootDir):
|
||||
addFile(z, x, x)
|
||||
close z
|
||||
|
||||
createZip("../")
|
||||
1
project/tests/test1.nim
Normal file
1
project/tests/test1.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
doAssert(1 + 1 == 2)
|
||||
1
project/tests/test1.nims
Normal file
1
project/tests/test1.nims
Normal file
|
|
@ -0,0 +1 @@
|
|||
switch("path", "$projectDir/../src")
|
||||
Loading…
Add table
Add a link
Reference in a new issue