Skip to content

Commit

Permalink
Small setup impovements
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Oct 3, 2022
1 parent 3368c20 commit abd5e15
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 83 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
root: true
extends:
- ./troll/.eslintrc.yaml
50 changes: 0 additions & 50 deletions .eslintrc.yml

This file was deleted.

14 changes: 7 additions & 7 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ if desktop_utils.found()
)
endif

configure_file(
input: 'app.service',
output: '@[email protected]'.format(app_id),
configuration: { 'app_id': app_id, 'bindir': bindir },
install_dir: join_paths(get_option('datadir'), 'dbus-1/services')
)

appstream_file = i18n.merge_file(
input: configure_file(
input: 'app.metainfo.xml',
Expand All @@ -37,13 +44,6 @@ if appstream_cli.found()
)
endif

configure_file(
input: 'app.service',
output: '@[email protected]'.format(app_id),
configuration: { 'app_id': app_id, 'bindir': bindir },
install_dir: join_paths(get_option('datadir'), 'dbus-1/services')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
Expand Down
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"strict": true,
"typeRoots": ["./node_modules/@types", "./node_modules/@gi-types"],
"types": ["gjs-environment", "base-types", "gtk4-types", "adw1"],
"lib": ["ES2021"],
"lib": ["ES2022"],
"allowSyntheticDefaultImports": true
},
"exclude": ["./src/lib", "node_modules"]
Expand Down
6 changes: 5 additions & 1 deletion src/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ ${getBlueprintVersion()}
"Sonny Piers https://sonny.re",
"Lorenz Wildberg https://gitlab.gnome.org/lwildberg",
],
designers: ["Tobias Bernard <[email protected]>"],
designers: [
"Sonny Piers https://sonny.re",
"Tobias Bernard <[email protected]>",
],
artists: ["Tobias Bernard <[email protected]>"],
});

dialog.add_credit_section(_("Contributors"), [
Expand Down
3 changes: 0 additions & 3 deletions src/re.sonny.Workbench β†’ src/bin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!@GJS@ -m

// -*- mode: js; -*-

import { exit } from "system";
import GLib from "gi://GLib";
import { setConsoleLogDomain } from "console";
Expand All @@ -21,7 +19,6 @@ const resource = Gio.resource_load("@pkgdatadir@/@[email protected]");
Gio.resources_register(resource);

const loop = new GLib.MainLoop(null, false);
// eslint-disable-next-line import/no-unresolved
import("resource:///re/sonny/Workbench/src/main.js")
.then((main) => {
// Workaround for issue
Expand Down
4 changes: 2 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin_conf = configuration_data()
bin_conf.set('GJS', find_program('gjs').path())
bin_conf.set('GJS', find_program('gjs').full_path())
bin_conf.set('version', meson.project_version() + version_suffix)
bin_conf.set('app_id', app_id)
bin_conf.set('prefix', prefix)
Expand Down Expand Up @@ -41,7 +41,7 @@ gnome.compile_resources(app_id,
)

configure_file(
input: 're.sonny.Workbench',
input: 'bin.js',
output: app_id,
configuration: bin_conf,
install: true,
Expand Down
10 changes: 2 additions & 8 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,8 @@
border-bottom: solid 1px @borders;
}

#panel_code {
border-right: solid 1px @borders;
}

#panel_style {
border-right: solid 1px @borders;
}

#panel_code,
#panel_style,
#panel_ui {
border-right: solid 1px @borders;
}
Expand Down
15 changes: 5 additions & 10 deletions src/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ Gtk.ApplicationWindow window {
child: ScrolledWindow {
vexpand: true;
GtkSource.View source_view_javascript {
buffer: GtkSource.Buffer {
};
buffer: GtkSource.Buffer {};
monospace: true;
auto-indent: true;
highlight-current-line: true;
Expand All @@ -190,8 +189,7 @@ Gtk.ApplicationWindow window {
child: ScrolledWindow {
vexpand: true;
GtkSource.View source_view_vala {
buffer: GtkSource.Buffer {
};
buffer: GtkSource.Buffer {};
monospace: true;
auto-indent: true;
highlight-current-line: true;
Expand Down Expand Up @@ -231,8 +229,7 @@ Gtk.ApplicationWindow window {
hexpand: true;

GtkSource.View source_view_css {
buffer: GtkSource.Buffer {
};
buffer: GtkSource.Buffer {};
monospace: true;
auto-indent: true;
highlight-current-line: true;
Expand Down Expand Up @@ -319,8 +316,7 @@ Gtk.ApplicationWindow window {
vexpand: true;

GtkSource.View source_view_blueprint {
buffer: GtkSource.Buffer {
};
buffer: GtkSource.Buffer {};
monospace: true;
auto-indent: true;
highlight-current-line: true;
Expand All @@ -340,8 +336,7 @@ Gtk.ApplicationWindow window {
vexpand: true;

GtkSource.View source_view_xml {
buffer: GtkSource.Buffer {
};
buffer: GtkSource.Buffer {};
monospace: true;
auto-indent: true;
highlight-current-line: true;
Expand Down
2 changes: 1 addition & 1 deletion troll

0 comments on commit abd5e15

Please sign in to comment.