From 0abe909ac07a7b6cbd1dc51ac0b944c3e88d46d7 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 18 Jan 2018 20:39:13 -0400 Subject: Add package.json and index.js --- .gitignore | 1 + index.js | 34 ++++++++++++++++++++++++++++++++++ package.json | 12 ++++++++++++ yarn.lock | 7 +++++++ 4 files changed, 54 insertions(+) create mode 100644 index.js create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore index e43b0f9..9daa824 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +node_modules diff --git a/index.js b/index.js new file mode 100644 index 0000000..e54418d --- /dev/null +++ b/index.js @@ -0,0 +1,34 @@ +module.exports = { + ui: { + Dialog: require('./ui/Dialog'), + DisplayElement: require('./ui/DisplayElement'), + HorizontalBox: require('./ui/HorizontalBox'), + Label: require('./ui/Label'), + Pane: require('./ui/Pane'), + Root: require('./ui/Root'), + Sprite: require('./ui/Sprite'), + form: { + Button: require('./ui/form/Button'), + CancelDialog: require('./ui/form/CancelDialog'), + ConfirmDialog: require('./ui/form/ConfirmDialog'), + FocusBox: require('./ui/form/FocusBox'), + FocusElement: require('./ui/form/FocusElement'), + Form: require('./ui/form/Form'), + ListScrollForm: require('./ui/form/ListScrollForm'), + TextInput: require('./ui/form/TextInput') + } + }, + util: { + ansi: require('./util/ansi'), + CommandLineInterfacer: require('./util/CommandLineInterfacer'), + count: require('./util/count'), + exception: require('./util/exception'), + Flushable: require('./util/Flushable'), + smoothen: require('./util/smoothen'), + telchars: require('./util/telchars'), + TelnetInterfacer: require('./util/TelnetInterfacer'), + unichars: require('./util/unichars'), + waitForData: require('./util/waitForData'), + wrap: require('./util/wrap') + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..bfc97b2 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "ui-lib", + "version": "0.0.0", + "description": "terminal ui library", + "main": "index.js", + "repository": "https://github.com/towerofnix/ui-lib", + "author": "Florrie ", + "license": "GPL-3.0", + "dependencies": { + "iac": "^1.1.0" + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..c3d2183 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,7 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +iac@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/iac/-/iac-1.1.0.tgz#0bcdd1737272feac23e75dbaa457829d81d3b4cc" -- cgit 1.3.0-6-gf8a5