-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
149 changed files
with
677 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
"name": "@ts-for-gir-example/adw-1-hello-example", | ||
"version": "4.0.0-beta.5", | ||
"description": "Simple GJS Typescript hello-world example using Libadwaita", | ||
"main": "index.js", | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
|
@@ -12,9 +11,8 @@ | |
"start:app": "gjs -m dist/main.js", | ||
"debug:app": "GTK_DEBUG=interactive gjs -m dist/main.js", | ||
"start": "yarn build && yarn start:app", | ||
"validate": "yarn validate:types && yarn validate:app", | ||
"validate:types": "tsc --project tsconfig.types.json", | ||
"validate:app": "tsc --noEmit", | ||
"validate": "yarn validate:types", | ||
"validate:types": "tsc --noEmit", | ||
"clear": "rm -rf dist" | ||
}, | ||
"author": "Pascal Garber <[email protected]>", | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@ts-for-gir-example/gio-2-cat-example", | ||
"version": "4.0.0-beta.5", | ||
"description": "Simple GJS Gtk 3 example app that shows how you can translate strings with gettext", | ||
"description": "Simple GJS Gtk 3 example app that shows how to use Gio-2.0 to read a file from the local file system", | ||
"main": "index.js", | ||
"type": "module", | ||
"private": true, | ||
|
@@ -12,9 +12,8 @@ | |
"start:app": "gjs -m dist/main.js main.ts", | ||
"debug:app": "GTK_DEBUG=interactive yarn start:app", | ||
"start": "yarn build && yarn start:app", | ||
"validate": "yarn validate:types && yarn validate:app", | ||
"validate:types": "tsc --project tsconfig.types.json", | ||
"validate:app": "tsc --noEmit", | ||
"validate": "yarn validate:types", | ||
"validate:types": "tsc --noEmit", | ||
"clear": "rm -rf dist @types " | ||
}, | ||
"author": "Pascal Garber <[email protected]>", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { build } from "esbuild"; | ||
|
||
await build({ | ||
entryPoints: ['dbus-client.ts', 'dbus-server.ts'], | ||
outdir: 'dist', | ||
bundle: true, | ||
// target: "firefox60", // Since GJS 1.53.90 | ||
// target: "firefox68", // Since GJS 1.63.90 | ||
// target: "firefox78", // Since GJS 1.65.90 | ||
// target: "firefox91", // Since GJS 1.71.1 | ||
// target: "firefox102", // Since GJS 1.73.2 | ||
target: "firefox115", // Since GJS 1.77.2 | ||
format: 'esm', | ||
// platform: 'node', | ||
external: ['gi://*', 'resource://*', 'gettext', 'system', 'cairo'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,10 @@ | |
"start": "yarn build && yarn start:server", | ||
"start:server": "gjs -m dist/dbus-server.js", | ||
"start:client": "gjs -m dist/dbus-client.js", | ||
"start:client-async": "gjs -m dist/dbus-client-async.js", | ||
"debug:server": "GTK_DEBUG=interactive yarn start:server", | ||
"debug:client": "GTK_DEBUG=interactive yarn start:client", | ||
"validate": "yarn validate:types && yarn validate:app", | ||
"validate:types": "tsc --project tsconfig.types.json", | ||
"validate:app": "tsc --noEmit", | ||
"validate": "yarn validate:types", | ||
"validate:types": "tsc --noEmit", | ||
"clear": "rm -rf dist @types" | ||
}, | ||
"author": "Pascal Garber <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,5 @@ | |
"files": [ | ||
"dbus-client.ts", | ||
"dbus-server.ts", | ||
"dbus-client-async.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ | |
"start:app": "gjs -m dist/main.js", | ||
"debug:app": "GTK_DEBUG=interactive gjs -m dist/main.js", | ||
"start": "yarn build && yarn start:app", | ||
"validate": "yarn validate:types && yarn validate:app", | ||
"validate:types": "tsc --project tsconfig.types.json", | ||
"validate": "yarn validate:types", | ||
"validate:types": "tsc --noEmit", | ||
"validate:app": "tsc --noEmit" | ||
}, | ||
"author": "Pascal Garber <[email protected]>", | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.