diff --git a/package.json b/package.json index 62d6bc70a..5340379d2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,10 @@ "name": "@nodegui/nodegui", "version": "1.0.0", "description": "A cross platform library to build native desktop apps. Based on Qt5.", - "main": "dist/", + "main": "dist/src/lib/index.js", + "files": [ + "dist/src/lib" + ], "author": "Atul R ", "license": "MIT", "private": false, diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 000000000..835d1668a --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1,18 @@ +export { QApplication } from "./QtGui/QApplication"; +export { QWidget } from "./QtGui/QWidget"; +// Abstract: +export { NodeWidget } from "./QtGui/QWidget"; +export { NodeLayout } from "./QtWidgets/QLayout"; +// Widgets: +export { QCheckBox } from "./QtWidgets/QCheckBox"; +export { QLabel } from "./QtWidgets/QLabel"; +export { QLineEdit } from "./QtWidgets/QLineEdit"; +export { QMainWindow } from "./QtWidgets/QMainWindow"; +export { QProgressBar } from "./QtWidgets/QProgressBar"; +export { QPushButton } from "./QtWidgets/QPushButton"; +export { QRadioButton } from "./QtWidgets/QRadioButton"; +// Layouts: +export { QGridLayout } from "./QtWidgets/QGridLayout"; +export { FlexLayout } from "./core/FlexLayout"; +// Events : Maybe a separate module ? +export { QKeyEvent } from "./QtGui/QEvent/QKeyEvent";