Инициализация проекта

This commit is contained in:
Alexander Zhirov 2026-01-04 14:17:53 +03:00
commit f0349cd899
Signed by: alexander
GPG key ID: C8D8BE544A27C511
11 changed files with 111 additions and 0 deletions

21
.gitignore vendored Normal file
View file

@ -0,0 +1,21 @@
.dub
docs.json
__dummy.html
docs/
/dncui
dncui.so
dncui.dylib
dncui.dll
dncui.a
dncui.lib
dncui-test-*
*.exe
*.pdb
*.o
*.obj
*.lst
lib
source/*
!source/ncui
lib
bin

14
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "code-d",
"request": "launch",
"name": "Debug example (task build)",
"preLaunchTask": "dub: build example (debug)",
"dubBuild": false,
"program": "${workspaceFolder}/bin/example",
"cwd": "${workspaceFolder}"
}
]
}

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.detectIndentation": false
}

19
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "dub: build example (debug)",
"type": "shell",
"command": "dub",
"args": [
"build",
":example",
"--build=debug"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}

1
README.md Normal file
View file

@ -0,0 +1 @@
# Ncurses User Interface

18
dub.json Normal file
View file

@ -0,0 +1,18 @@
{
"name": "ncui",
"description": "Ncurses User Interface",
"license": "BSL-1.0",
"authors": [
"Alexander Zhirov"
],
"copyright": "Copyright © 2026, Alexander Zhirov",
"targetType": "library",
"targetPath": "lib",
"targetName": "ncui",
"dependencies": {
"ncurses": "~>1.0.0"
},
"subPackages": [
"example"
]
}

6
dub.selections.json Normal file
View file

@ -0,0 +1,6 @@
{
"fileVersion": 1,
"versions": {
"ncurses": "1.0.0"
}
}

11
example/dub.json Normal file
View file

@ -0,0 +1,11 @@
{
"name": "example",
"targetName": "example",
"targetType": "executable",
"targetPath": "../bin",
"dependencies": {
"ncui": {
"path": ".."
}
}
}

View file

@ -0,0 +1,6 @@
{
"fileVersion": 1,
"versions": {
"ncurses": "1.0.0"
}
}

8
example/source/app.d Normal file
View file

@ -0,0 +1,8 @@
import ncui;
import std.stdio : writeln;
void main()
{
writeln("test");
}

2
source/ncui/package.d Normal file
View file

@ -0,0 +1,2 @@
module source.ncui;