An open API service indexing awesome lists of open source software.

https://github.com/enpitsulin/react-nodegui-vite-starter

⚡️ React based NodeGui Vite Starter Template
https://github.com/enpitsulin/react-nodegui-vite-starter

desktop gui native nodejs qt react vite

Last synced: 4 months ago
JSON representation

⚡️ React based NodeGui Vite Starter Template

Awesome Lists containing this project

README

          

# react-nodegui-vite-starter

A React NodeGui starter template ⚡️ powered by Vite rather than webpack

![demo](https://user-images.githubusercontent.com/29378026/159410891-3ef20347-c266-4b94-b23e-a1825f9c41bb.png)

## Use the Template

### GitHub Template

[Create a repo with this template on GitHub](../../generate)

## Usage

### Development

Run the dev server

```bash
pnpm dev
```

### Packaging app as a distributable

In order to distribute your finished app, you can use [@nodegui/packer](https://github.com/nodegui/packer)

#### Step 1: init your app

```bash
npx nodegui-packer --init AppName
```
This will produce the deploy directory containing the template. You can modify this to suite your needs. Like add icons, change the name, description and add other native features or dependencies. Make sure you commit this directory.

#### Step 2: (Run this command every time you want to build a new distributable)

Next you can run the pack command:

```bash
pnpm build
```

This will produce the js bundle along with assets inside the `./dist` directory

```bash
pnpm deploy
```

This will build the distributable using @nodegui/packer based on your build products

# License

MIT