Created nimble package

This commit is contained in:
Productive2 2021-02-19 11:27:27 +01:00
parent 8d1cb21b03
commit 64dd2164ba
16 changed files with 42 additions and 16 deletions

View File

@ -1,10 +1,10 @@
import ../plugin/defaults
import ../editor
import ../strutils
import ../templates
import ../multiline
import jale/plugin/defaults
import jale/editor
import jale/templates
import jale/multiline
import terminal
import strutils
import os
eraseScreen()

View File

@ -1,7 +1,8 @@
import ../plugin/defaults
import ../editor
import ../strutils
import ../templates
import jale/plugin/defaults
import jale/editor
import jale/templates
import strutils
var keep = true

View File

@ -1,9 +1,10 @@
import ../plugin/defaults
import ../plugin/history
import ../plugin/editor_history
import ../editor
import ../strutils
import ../templates
import jale/plugin/defaults
import jale/plugin/history
import jale/plugin/editor_history
import jale/editor
import jale/templates
import strutils
var keep = true

11
jale.nimble Normal file
View File

@ -0,0 +1,11 @@
# Package
version = "0.1.0"
author = "Productive2"
description = "Just Another Line Editor"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.4.2"

View File

@ -153,5 +153,6 @@ proc read*(editor: LineEditor): string =
# move cursor to end
editor.moveCursorToEnd()
result = editor.content.getContent()
if editor.state == esFinishing:
result = editor.content.getContent()
editor.reset()

1
tests/config.nims Normal file
View File

@ -0,0 +1 @@
switch("path", "$projectDir/../src")

11
tests/test1.nim Normal file
View 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 "can test":
check true