Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit a969d92

Browse files
committed
Clean up NodeGUI-specific instructions from README
1 parent 5310cbd commit a969d92

File tree

1 file changed

+20
-91
lines changed

1 file changed

+20
-91
lines changed

README.md

Lines changed: 20 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Build **performant**, **native** and **cross-platform** desktop applications with **Node.js** and **Svelte**.🚀
1111

12-
Svelte NodeGUI is powered by **Svelte** and **Qt5** 💚 which makes it CPU and memory efficient as compared to other chromium based solutions like electron. Svelte NodeGUI is essentially a Svelte renderer for [NodeGUI](https://github.com/nodegui/nodegui).
12+
Svelte NodeGUI is powered by **Svelte** and **Qt5** 💚 which makes it CPU- and memory-efficient when compared to other Chromium-based solutions like Electron. Svelte NodeGUI is essentially a [Svelte](https://svelte.dev) renderer for [NodeGUI](https://github.com/nodegui/nodegui).
1313

1414
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1024px-React-icon.svg.png" alt="" width="25"> If you are looking for the **React**-based version, check out: **[React NodeGUI](https://github.com/nodegui/react-nodegui)**.
1515

@@ -41,7 +41,7 @@ https://github.com/nodegui/examples
4141
## Features
4242

4343
- 🧬 Cross platform. Should work on major Linux flavours, Windows and macOS.
44-
- 📉 Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20mb for a hello world program.
44+
- 📉 Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20 MB for a Hello World program.
4545
- 💅 Styling with CSS (includes actual cascading). Also has full support for Flexbox layout (thanks to Yoga).
4646
- ✅ Complete Node.js api support (Currently runs on Node v12.x - and is easily upgradable). Hence has access to all Node.js-compatible npm modules.
4747
- 🎪 Native widget event listener support. Supports all events available from Qt / NodeJs.
@@ -50,92 +50,15 @@ https://github.com/nodegui/examples
5050
- 📚 Good documentation and website.
5151
- 🧙‍♂️ Good documentation for contributors.
5252
- 🦹🏻‍♀️ Good support for dark mode (Thanks to Qt).
53-
- 🏅First class Typescript support. (Works on regular JS projects too 😉).
53+
- 🏅 First class TypeScript support. (Works on regular JS projects too 😉).
5454

5555
## Getting Started
5656

57-
- For now, download a zip of this repo and copying the `demo` folder is the best way to scaffold a new project.
58-
- Read through the [Svelte NodeGUI docs](https://svelte.nodegui.org/) (there are no Svelte NodeGUI docs yet, but there should be little difference).
59-
- Checkout the examples: https://github.com/nodegui/examples .
57+
- Check out [svelte-nodegui-starter](https://github.com/nodegui/svelte-nodegui-starter) to get up and running with your own Svelte NodeGUI app!
58+
- Read through the [Svelte NodeGUI docs](https://svelte.nodegui.org/)
59+
- Check out the examples: https://github.com/nodegui/examples.
6060
- [Tutorial: Build a native Meme Search Desktop app with Javascript (NodeGUI) and Giphy API](https://www.sitepoint.com/build-native-desktop-gif-searcher-app-using-nodegui/)
6161

62-
## Installation
63-
64-
NodeGui requires CMake and Compilation Tools as it is a wrapper for a native C++ widget toolkit QT.
65-
Detailed instructions here: https://www.sitepoint.com/build-native-desktop-gif-searcher-app-using-nodegui/
66-
67-
TL;DR:
68-
69-
### MacOS
70-
71-
```sh
72-
brew install cmake
73-
brew install make
74-
```
75-
76-
### Windows
77-
78-
https://cmake.org/download/
79-
80-
### Linux (Debian/Ubuntu)
81-
82-
```sh
83-
sudo apt-get install pkg-config build-essential
84-
sudo apt-get install cmake make
85-
sudo apt-get install mesa-common-dev libglu1-mesa-dev
86-
```
87-
88-
### Linux (Fedora/RHEL/CentOS)
89-
90-
```sh
91-
sudo dnf groupinstall "Development Tools" "Development Libraries"
92-
sudo dnf groupinstall "C Development Tools and Libraries"
93-
sudo dnf install mesa-libGL mesa-libGL-devel
94-
```
95-
96-
Then install NodeGUI from your command line:
97-
98-
#### To install latest stable release:
99-
100-
```sh
101-
# WARNING: Not yet published to npm. On the to-do list..!
102-
npm install @nodegui/svelte-nodegui
103-
```
104-
105-
#### To install the latest version available on master branch:
106-
107-
```sh
108-
npm install https://github.com/nodegui/nodegui/releases/download/v0.0.0-latest-master/nodegui-master.tgz
109-
```
110-
111-
or a shorter version:
112-
113-
```sh
114-
npm i http://master-release.nodegui.org
115-
```
116-
117-
If the installation fails to download the Qt binaries, a mirror can be used by setting the following environment variable and running the install command again:
118-
119-
```sh
120-
QT_LINK_MIRROR=<alternative domain> # eg. QT_LINK_MIRROR=https://qt-mirror.dannhauer.de
121-
122-
npm install @nodegui/svelte-nodegui
123-
```
124-
125-
See [FAQs](https://github.com/nodegui/nodegui/tree/master/website/docs/faq.md#why-does-installation-fail-at-minimal-qt-setup) for more details.
126-
127-
**Community guides**
128-
129-
- [Tutorial: Build a native Meme Search Desktop app with Javascript (NodeGUI) and Giphy API](https://www.sitepoint.com/build-native-desktop-gif-searcher-app-using-nodegui/)
130-
- https://blog.logrocket.com/electron-alternatives-exploring-nodegui-and-react-nodegui/ - Electron alternatives: Exploring NodeGUI and React NodeGUI by [Siegfried Grimbeek](https://blog.logrocket.com/author/siegfriedgrimbeek/).
131-
- https://hibbard.eu/node-gui/ - Excellent guide from [James Hibbard](https://github.com/jameshibbard).
132-
133-
**Talks/Podcasts**
134-
135-
- [NodeGUI and React NodeGUI at KarmaJS Nov 2019 meetup: https://www.youtube.com/watch?v=8jH5gaEEDv4](https://www.youtube.com/watch?v=8jH5gaEEDv4)
136-
137-
- <audio data-theme="night" data-src="https://changelog.com/jsparty/96/embed" src="https://cdn.changelog.com/uploads/jsparty/96/js-party-96.mp3" preload="none" class="changelog-episode" controls></audio><p><a href="https://changelog.com/jsparty/96">JS Party 96: Performant Node desktop apps with NodeGUI</a> – Listen on <a href="https://changelog.com/">Changelog.com</a></p>
138-
13962
## Docs for contributing
14063

14164
### Svelte NodeGUI
@@ -150,28 +73,34 @@ Please read https://github.com/nodegui/.github/blob/master/CONTRIBUTING.md
15073

15174
## Building
15275

153-
`npm run build`
76+
```sh
77+
npm run build
78+
```
15479

15580
Optionally set `QT_INSTALL_DIR='/path/to/qt'` environment variable to build using your own version of Qt.
15681

15782
## Updating docs
15883

159-
`npm run docs`
84+
### Generating docs from source code
85+
86+
The docs generation process is currently a manual operation (text edit everything yourself). The docs are a copy-paste of the React NodeGUI docs, with some text replacement. We're also carrying around a slight fork of the React NodeGUI source in the codebase. In future we hope to clean up this workflow and make it more automatable using `typedoc` just like the original React NodeGUI workflow.
16087

161-
then followed by:
88+
### Deploying docs to GitHub Pages
16289

163-
`cd website && GIT_USER=<your_git_username> yarn deploy`
90+
```sh
91+
cd website && GIT_USER=<your_git_username> npm run deploy
92+
```
16493

16594
## Funding
16695

16796
As no funding infrastructure is in place for Svelte NodeGUI specifically, please consider supporting [NodeGUI](https://github.com/nodegui/nodegui) instead, which would be just as productive!
16897

16998
## Special Thanks
17099

171-
- [NodeGUI logo: Thanks to Vishwas Shetty from the Noun Project.](https://github.com/nodegui/nodegui/blob/master/extras/legal/logo/thanks.md)
172-
- [halfnelson](https://github.com/halfnelson) for [Svelte Native](https://github.com/halfnelson/svelte-native), which Svelte NodeGUI forks (as it is an excellent example of building a custom Svelte renderer).
173-
- [rigor789](https://github.com/rigor789) for [NativeScript Vue Next](https://github.com/rigor789/nativescript-vue-next), from which Svelte NodeGUI takes (and adapts) its DOM implementation.
174-
- [a7ul](https://github.com/a7ul) for creating [NodeGUI](https://github.com/nodegui/nodegui) and unwittingly teaching me [how to build renderers](https://blog.atulr.com/react-custom-renderer-1/) in the first place.
100+
- [NodeGUI logo: Thanks to Vishwas Shetty from the Noun Project.](https://github.com/nodegui/nodegui/blob/master/extras/legal/logo/thanks.md)
101+
- [halfnelson](https://github.com/halfnelson) for [Svelte Native](https://github.com/halfnelson/svelte-native), which Svelte NodeGUI forks (as it is an excellent example of building a custom Svelte renderer).
102+
- [rigor789](https://github.com/rigor789) for [NativeScript Vue Next](https://github.com/rigor789/nativescript-vue-next), from which Svelte NodeGUI takes (and adapts) its DOM implementation.
103+
- [a7ul](https://github.com/a7ul) for creating [NodeGUI](https://github.com/nodegui/nodegui) and unwittingly teaching me [how to build renderers](https://blog.atulr.com/react-custom-renderer-1/) in the first place.
175104

176105

177106
## Code of Conduct

0 commit comments

Comments
 (0)