diff options
author | Aylur <[email protected]> | 2024-05-25 14:44:50 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-05-25 14:44:50 +0200 |
commit | 58fa1ab9be7ee8fd4a8e96865121a54d613978cc (patch) | |
tree | 56f01ba49fd2929690a16ac05a4af8f763e6b30b /js/node/astal.ts | |
parent | a7e25a4a5fcf4de89fe5a149a9aaf50a92be7af1 (diff) |
separate node and gjs into its own package
Diffstat (limited to 'js/node/astal.ts')
-rw-r--r-- | js/node/astal.ts | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/js/node/astal.ts b/js/node/astal.ts deleted file mode 100644 index 9560a81..0000000 --- a/js/node/astal.ts +++ /dev/null @@ -1,38 +0,0 @@ -import gi from "node-gtk" -import Time from "../src/time.js" -import Process from "../src/process.js" -import * as variable from "../src/variable.js" -const Astal = gi.require("Astal", "0.1") - -const { interval, timeout, idle } = Time(Astal.Time) -const { subprocess, exec, execAsync } = Process({ - defaultOut: console.log, - defaultErr: console.error, - exec: Astal.Process.exec, - execv: Astal.Process.execv, - execAsync: Astal.Process.execAsync, - execAsyncv: Astal.Process.execAsyncv, - subprocess: Astal.Process.subprocess, - subprocessv: Astal.Process.subprocessv, -}) - -variable.config.defaultErrHandler = console.log -variable.config.execAsync = execAsync -variable.config.subprocess = subprocess -variable.config.interval = interval -variable.config.VariableBase = Astal.VariableBase -Object.freeze(variable.config) - -export { subprocess, exec, execAsync } -export { interval, timeout, idle } -export { bind } from "../src/binding.js" -export { Variable } from "../src/variable.js" -export * as Widget from "./widgets.js" -export { App } from "./application.js" - -// for convinience -export const GLib = gi.require("GLib", "2.0") -export const Gtk = gi.require("Gtk", "3.0") -export const Gio = gi.require("Gio", "2.0") -export const GObject = gi.require("GObject", "2.0") -export { Astal, gi } |