Skip to content

Commit

Permalink
Merge pull request #162 from gjsify/feat/generate
Browse files Browse the repository at this point in the history
New copy command added
  • Loading branch information
JumpLink committed May 14, 2024
2 parents d1a47e6 + a675f79 commit 978c3b7
Show file tree
Hide file tree
Showing 582 changed files with 4,388,289 additions and 80,926 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
examples:

Expand Down
51 changes: 11 additions & 40 deletions .ts-for-gir.all.rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,23 @@ export default {
'./vala-girs/gir-1.0',
'./girs',

// General gir files installed on the system
"/usr/local/share/gir-1.0",
"/usr/share/gir-1.0",

// GNOME Shell gir file (package: gnome-shell-common / gnome-shell)
'/usr/local/share/gir-1.0',
'/usr/share/gir-1.0',
'/usr/share/*/gir-1.0',
'/usr/share/gnome-shell',
'/usr/share/gnome-shell/gir-1.0',

// GNOME Shell gir file dependencies on Fedora Workstation 36 (package: mutter)
'/usr/lib64/mutter-10',

// GNOME Shell gir file dependencies on Fedora Workstation 37 (package: mutter)
'/usr/lib64/mutter-11',

// GNOME Shell gir file dependencies on Fedora Workstation 38 (package: mutter)
'/usr/lib64/mutter-12',

// GNOME Shell gir file dependencies on Fedora Workstation 39 (package: mutter)
'/usr/lib64/mutter-13',

// Wait for release...
'/usr/lib64/mutter-14',

// GNOME Shell gir file dependencies on Ubuntu 22.04 (package: libmutter-10-dev)
'/usr/lib/x86_64-linux-gnu/mutter-10',

// GNOME Shell gir file dependencies on Ubuntu 22.10 (package: libmutter-11-dev)
'/usr/lib/x86_64-linux-gnu/mutter-11',

// GNOME Shell gir file dependencies on Ubuntu 23.04 (package: libmutter-12-dev)
'/usr/lib/x86_64-linux-gnu/mutter-12',

// GNOME Shell gir file dependencies on Ubuntu 23.10 (package: libmutter-13-dev)
'/usr/lib/x86_64-linux-gnu/mutter-13',

// GNOME Shell gir file dependencies on Ubuntu package: libmutter-14-dev) and GNOME OS
'/usr/lib/x86_64-linux-gnu/mutter-14',
'/usr/lib64/mutter-*',
'/usr/lib/mutter-*',
'/usr/lib/x86_64-linux-gnu/mutter-*',
],
ignoreVersionConflicts: true,
promisify: true,
packageYarn: true,
ignore: [
'Colorhug-1.0', // Duplicate of ColorHug-1.0
'GUPnP-DLNA-1.0', // Same namespace as GUPnP-1.0.gir, is this a bug or should we merge the type definitions?
'GstBase-1.0', // Unable to resolve type: BaseSink from GstBase in ClutterGst 1.0
'ClutterGst-1.0', // Depends on GstBase-1.0
'GstAudio-0.10', // Depends on GstBase-1.0
'*/Colorhug-1.0', // Duplicate of ColorHug-1.0
'*/GUPnP-DLNA-1.0', // Same namespace as GUPnP-1.0.gir, is this a bug or should we merge the type definitions?
'*/GstBase-1.0', // Unable to resolve type: BaseSink from GstBase in ClutterGst 1.0
'*/ClutterGst-1.0', // Depends on GstBase-1.0
'*/GstAudio-0.10', // Depends on GstBase-1.0
],
}
17 changes: 17 additions & 0 deletions .ts-for-gir.copy-all.rc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export default {
outdir: './girs',
modules: ['*'],
girDirectories: [
'/usr/local/share/gir-1.0',
'/usr/share/gir-1.0',
'/usr/share/*/gir-1.0',
'/usr/share/gnome-shell',
'/usr/share/gnome-shell/gir-1.0',
'/usr/lib64/mutter-*',
'/usr/lib/mutter-*',
'/usr/lib/x86_64-linux-gnu/mutter-*',

'./vala-girs/gir-1.0',
'./girs',
],
}
11 changes: 5 additions & 6 deletions .ts-for-gir.packages-all.rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ export default {
girDirectories: [
// General gir files in this repository
'./girs',
'./vala-girs/gir-1.0',
],
ignore: [
'Colorhug-1.0', // Duplicate of ColorHug-1.0
'GUPnP-DLNA-1.0', // Same namespace as GUPnP-1.0.gir, is this a bug or should we merge the type definitions?
'GstBase-1.0', // Unable to resolve type: BaseSink from GstBase in ClutterGst 1.0
'ClutterGst-1.0', // Depends on GstBase-1.0
'GstAudio-0.10', // Depends on GstBase-1.0
'*/Colorhug-1.0', // Duplicate of ColorHug-1.0
'*/GUPnP-DLNA-1.0', // Same namespace as GUPnP-1.0.gir, is this a bug or should we merge the type definitions?
'*/GstBase-1.0', // Unable to resolve type: BaseSink from GstBase in ClutterGst 1.0
'*/ClutterGst-1.0', // Depends on GstBase-1.0
'*/GstAudio-0.10', // Depends on GstBase-1.0
],
ignoreVersionConflicts: true,
promisify: true,
Expand Down
517 changes: 259 additions & 258 deletions .yarn/releases/yarn-4.1.1.cjs → .yarn/releases/yarn-4.2.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ compressionLevel: mixed

enableGlobalCache: false

yarnPath: .yarn/releases/yarn-4.1.1.cjs
yarnPath: .yarn/releases/yarn-4.2.1.cjs
10 changes: 5 additions & 5 deletions examples/gjs/adw-1-hello/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/adw-1-hello-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Typescript hello-world example using Libadwaita",
"main": "index.js",
"type": "module",
Expand All @@ -20,11 +20,11 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/core": "^7.24.5",
"@rollup/plugin-babel": "^6.0.4",
"rollup": "^4.13.0",
"typescript": "^5.4.2",
"vite": "^5.1.6"
"rollup": "^4.17.2",
"typescript": "^5.4.5",
"vite": "^5.2.11"
},
"dependencies": {
"@girs/adw-1": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gio-2-cat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gio-2-cat-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Gtk 3 example app that shows how you can translate strings with gettext",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gio-2.0": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gio-2-dbus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gio-2-dbus-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "GJS example showing how to build a DBus server/client",
"main": "index.js",
"type": "module",
Expand All @@ -23,8 +23,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gio-2.0": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion examples/gjs/gio-2-dbus/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"noImplicitThis": true,
"alwaysStrict": true,
},
"include": ["@girs/gjs"],
"files": [
"dbus-client.ts",
"dbus-server.ts",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gio-2-list-model/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gio-2-list-model-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "An example of implementing the GListModel interface in GJS",
"main": "index.js",
"type": "module",
Expand All @@ -19,8 +19,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gio-2.0": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/glib-2-spawn-command/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/glib-2-spawn-command-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "",
"module": "dist/main.js",
"private": true,
Expand All @@ -23,8 +23,8 @@
"devDependencies": {
"fork-ts-checker-webpack-plugin": "^9.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/glib-2-variant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/glib-2-variant-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "ts-for-gir GVariant example based on https://gjs.guide/guides/glib/gvariant.html",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gio-2.0": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-browser-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "",
"module": "dist/main.js",
"type": "module",
Expand All @@ -24,8 +24,8 @@
"devDependencies": {
"fork-ts-checker-webpack-plugin": "^9.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-builder-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "",
"main": "main.ts",
"private": true,
Expand All @@ -24,8 +24,8 @@
"fork-ts-checker-webpack-plugin": "^9.0.2",
"raw-loader": "^4.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-calc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-calc-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Gtk 3 calculator example app",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gjs": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-editor-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "",
"main": "main.ts",
"private": true,
Expand All @@ -22,8 +22,8 @@
"devDependencies": {
"fork-ts-checker-webpack-plugin": "^9.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-gettext/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-gettext-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Gtk 3 example app that shows how you can translate strings with gettext",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gjs": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-hello-2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-hello-2-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Gtk 3 example app to demonstrate how you can connect to Gtk signals",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gjs": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-hello/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-hello-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "",
"main": "main.ts",
"private": true,
Expand All @@ -24,8 +24,8 @@
"devDependencies": {
"fork-ts-checker-webpack-plugin": "^9.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/gjs/gtk-3-template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-for-gir-example/gtk-3-template-example",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.5",
"description": "Simple GJS Gtk 3 example app to demonstrate how you can use .ui template XML files",
"main": "index.js",
"type": "module",
Expand All @@ -20,8 +20,8 @@
"author": "Pascal Garber <[email protected]>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.4.2"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@girs/gjs": "workspace:^",
Expand Down
Loading

0 comments on commit 978c3b7

Please sign in to comment.