0.0.3 • Published 6 months ago
@react-gnome/core v0.0.3
react-gtk
Getting Started
Make sure you have Node.js installed on your system, it's necessary for the development.
Install the required dependencies
yarn add @react-gnome/core
# or
npm install @react-gnome/core- Install the optional dependencies
gjs-esm-types- adds type definitions for the GJS environmentts-node- allows you to start the project when written in TypeScript@swc/core- enabled swc compiler and speeds up development commands when using TypeScript
yarn add -D gjs-esm-types ts-node @swc/core
# or
npm install -D gjs-esm-types ts-node @swc/core- Initiate the project
Run the init command:
yarn react-gtk init
# or
npx react-gtk initthen open react-gtk.config.mjs file, change the app name and optionally adjust the project settings.
- Start coding
The entry file will be located in src/start.jsx.
Running in dev mode
yarn start
# or
npm run startThis command will start the project in development mode and watch for changes.
Building the project
yarn build
# or
npm run buildThis 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.
yarn bundle
# or
npm run bundleThis command will create a standalone bundle file.
Documentation
Check out more of the React GTK features here