Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BrainBlasted committed Feb 8, 2023
0 parents commit 00febf0
Show file tree
Hide file tree
Showing 32 changed files with 5,023 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_build/
.vscode/
.flatpak/
node_modules/
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "gi-types"]
path = gi-types
url = https://gitlab.gnome.org/BrainBlasted/gi-typescript-definitions.git
branch = nightly
21 changes: 21 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Chris Davis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3,296 changes: 3,296 additions & 0 deletions build-aux/flatpak/generated-sources.json

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions build-aux/flatpak/org.example.TypescriptTemplate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"app-id" : "org.example.TypescriptTemplate",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.node18"
],
"tags" : [
"nightly"
],
"build-options" : {
"append-path" : "/usr/lib/sdk/node18/bin"
},
"command" : "org.example.TypescriptTemplate",
"finish-args" : [
"--share=ipc",
"--device=dri",
"--socket=wayland",
"--socket=fallback-x11",
"--env=GJS_DISABLE_JIT=1"
],
"cleanup" : [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a",
"/app/yarn-mirror"
],
"modules" : [
{
"name" : "yarn-deps",
"buildsystem" : "simple",
"build-commands" : [
"/usr/lib/sdk/node18/enable.sh",
"mkdir -p /app",
"cp -r $FLATPAK_BUILDER_BUILDDIR/flatpak-node/yarn-mirror/ /app"
],
"sources" : [
"generated-sources.json"
]
},
{
"name" : "gnome-typescript-template",
"buildsystem" : "meson",
"config-opts" : [
"-Doffline-mirror=/app/yarn-mirror/"
],
"sources" : [
{
"type" : "git",
"url" : "."
}
]
}
]
}
130 changes: 130 additions & 0 deletions data/icons/hicolor/scalable/apps/org.example.TypescriptTemplate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
application_id = 'org.example.TypescriptTemplate'

scalable_dir = join_paths('hicolor', 'scalable', 'apps')
install_data(
join_paths(scalable_dir, ('@[email protected]').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
)

symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
install_data(
join_paths(symbolic_dir, ('@[email protected]').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
)
39 changes: 39 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
desktop_file = i18n.merge_file(
input: 'org.example.TypescriptTemplate.desktop.in',
output: 'org.example.TypescriptTemplate.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils, args: [desktop_file])
endif

appstream_file = i18n.merge_file(
input: 'org.example.TypescriptTemplate.appdata.xml.in',
output: 'org.example.TypescriptTemplate.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
endif

install_data('org.example.TypescriptTemplate.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file',
compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()])
endif

subdir('icons')
9 changes: 9 additions & 0 deletions data/org.example.TypescriptTemplate.appdata.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>org.example.TypescriptTemplate.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<description>
<p>No description</p>
</description>
</component>
8 changes: 8 additions & 0 deletions data/org.example.TypescriptTemplate.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=gnome-typescript-template
Exec=org.example.TypescriptTemplate
Icon=org.example.TypescriptTemplate
Terminal=false
Type=Application
Categories=GTK;
StartupNotify=true
5 changes: 5 additions & 0 deletions data/org.example.TypescriptTemplate.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gnome-typescript-template">
<schema id="org.example.TypescriptTemplate" path="/org/example/TypescriptTemplate/">
</schema>
</schemalist>
1 change: 1 addition & 0 deletions gi-types
Submodule gi-types added at a30f0b
Loading

0 comments on commit 00febf0

Please sign in to comment.