Initial commit

This commit is contained in:
treeform 2020-11-19 18:41:32 -08:00
commit 238479e72e
10 changed files with 70 additions and 0 deletions

26
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
- uses: jiro4989/setup-nim-action@v1
- run: nimble test -y

11
.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
# ignore files with no extention:
*
!*/
!*.*
# normal ignores:
*.exe
nimcache
*.pdb
*.ilk
.*

9
LICENSE Normal file
View file

@ -0,0 +1,9 @@
The MIT License (MIT)
Copyright (c) 2020 Author
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.

7
README.md Normal file
View file

@ -0,0 +1,7 @@
# You can use this nim template to jump start your nim library or project.
This template includes:
* MIT licence
* src directory and a private common.nim
* test directory
* GitHub Actions to run the tests on GitHub

1
examples/example.nim Normal file
View file

@ -0,0 +1 @@
## Include an example on how to use your library

8
nimtemplate.nimble Normal file
View file

@ -0,0 +1,8 @@
version = "0.0.0"
author = "Your name"
description = "Description of your library"
license = "MIT"
srcDir = "src"
requires "nim >= 1.2.2"

3
src/nimtemplate.nim Normal file
View file

@ -0,0 +1,3 @@
## Public interface to you library.
import nimtemplate/common

View file

@ -0,0 +1 @@
## Add private variables or functions here that you don't want to export.

1
tests/config.nims Normal file
View file

@ -0,0 +1 @@
--path:"../src"

3
tests/test.nim Normal file
View file

@ -0,0 +1,3 @@
## Put your tests here.
import nimtemplate