Skip to content

Commit a8da0d2

Browse files
committed
chore: rename to react-gtk
1 parent 99a464f commit a8da0d2

31 files changed

+78
-77
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "./node_modules/git-hook-tasks/dist/config/json-schema.json"
1111
},
1212
{
13-
"fileMatch": ["react-gnome.config.json"],
13+
"fileMatch": ["react-gtk.config.json"],
1414
"url": "./dist/config-schema.json"
1515
},
1616
{
@@ -38,4 +38,4 @@
3838
"[json]": {
3939
"editor.defaultFormatter": "dprint.dprint"
4040
}
41-
}
41+
}

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# react-gnome
1+
# react-gtk
22

33
## Getting Started
44

55
1. Install the required dependencies
66
```bash
7-
yarn add @reactgjs/react-gnome @reactgjs/renderer
7+
yarn add @reactgjs/react-gtk @reactgjs/renderer
88
```
99

1010
2. Install the optional dependencies
@@ -19,9 +19,9 @@ yarn add -D gjs-esm-types ts-node @swc/core
1919
3. Initiate the project
2020
Run the init command:
2121
```bash
22-
yarn react-gnome init
22+
yarn react-gtk init
2323
```
24-
then open `react-gnome.config.mjs` file, change the app name and optionally adjust the project settings.
24+
then open `react-gtk.config.mjs` file, change the app name and optionally adjust the project settings.
2525

2626
4. Start coding
2727
The entry file will be located in `src/start.jsx`.
@@ -30,23 +30,23 @@ The entry file will be located in `src/start.jsx`.
3030
## Running in dev mode
3131

3232
```bash
33-
yarn react-gnome start -m development -w
33+
yarn react-gtk start -m development -w
3434
```
3535
This command will start the project in development mode and watch for changes.
3636

3737

3838
## Building the project
3939

4040
```bash
41-
yarn react-gnome build
41+
yarn react-gtk build
4242
```
4343
This command will create a bundle file as well as other files meson needs to build the project. And then package it into a tarball file.
4444

4545
```bash
46-
yarn react-gnome bundle
46+
yarn react-gtk bundle
4747
```
4848
This command will create a standalone bundle file.
4949

5050
## Documentation
5151

52-
Check out more of the ReactGnome features [here](./docs)
52+
Check out more of the React GTK features [here](./docs)

bin/react-gnome.cjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/react-gnome.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/react-gnome.mjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/react-gtk.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { start } = require("@reactgjs/react-gtk/cli");
2+
start();

bin/react-gtk.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { start } = require("@reactgjs/react-gtk/cli");
2+
start();

bin/react-gtk.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { start } from "@reactgjs/react-gtk/cli";
2+
start();
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@ if which ts-node >/dev/null 2>&1; then
1111

1212
if "$HAS_SWC" == true; then
1313
if [ "$PKG_JSON_MODULE" = "commonjs" ]; then
14-
ts-node --swc "$HERE"/react-gnome.cjs "$@"
14+
ts-node --swc "$HERE"/react-gtk.cjs "$@"
1515
else
1616
if [ "$PKG_JSON_MODULE" = "module" ]; then
17-
ts-node-esm --swc "$HERE"/react-gnome.mjs "$@"
17+
ts-node-esm --swc "$HERE"/react-gtk.mjs "$@"
1818
else
19-
ts-node --swc "$HERE"/react-gnome.js "$@"
19+
ts-node --swc "$HERE"/react-gtk.js "$@"
2020
fi
2121
fi
2222
else
2323
if [ "$PKG_JSON_MODULE" = "commonjs" ]; then
24-
ts-node -T "$HERE"/react-gnome.cjs "$@"
24+
ts-node -T "$HERE"/react-gtk.cjs "$@"
2525
else
2626
if [ "$PKG_JSON_MODULE" = "module" ]; then
27-
ts-node-esm -T "$HERE"/react-gnome.mjs "$@"
27+
ts-node-esm -T "$HERE"/react-gtk.mjs "$@"
2828
else
29-
ts-node -T "$HERE"/react-gnome.js "$@"
29+
ts-node -T "$HERE"/react-gtk.js "$@"
3030
fi
3131
fi
3232
fi
3333
else
3434
if [ "$PKG_JSON_MODULE" = "commonjs" ]; then
35-
node "$HERE"/react-gnome.cjs "$@"
35+
node "$HERE"/react-gtk.cjs "$@"
3636
else
3737
if [ "$PKG_JSON_MODULE" = "module" ]; then
38-
node "$HERE"/react-gnome.mjs "$@"
38+
node "$HERE"/react-gtk.mjs "$@"
3939
else
40-
node "$HERE"/react-gnome.js "$@"
40+
node "$HERE"/react-gtk.js "$@"
4141
fi
4242
fi
4343
fi

docs/environment-vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ console.log(env.appName); // 'Example App'
1313
Setting the environment variables in the config:
1414

1515
```tsx
16-
import type { BuildConfig } from "@reactgjs/react-gnome";
16+
import type { BuildConfig } from "@reactgjs/react-gtk";
1717

1818
export default () => {
1919
const config: BuildConfig = {

0 commit comments

Comments
 (0)