Skip to content

Commit 7a535c1

Browse files
committedSep 10, 2020
adding startup docs 📚
1 parent 7209337 commit 7a535c1

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
 

‎README.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
vue-nodegui-starter
2+
3+
Clone and run for a quick way to see Vue NodeGui in action.
4+
![demo image](/assets/demo.png)
5+
6+
## To Use
7+
8+
To clone and run this repository you'll need [Git](https://git-scm.com/) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com/)) installed on your computer. From your command line:
9+
10+
```shell
11+
# Clone this repository
12+
git clone https://github.com/nodegui/vue-nodegui-starter
13+
# Install CMake
14+
brew install cmake
15+
# Go into the repository
16+
cd vue-nodegui-starter
17+
# Install dependencies
18+
npm install
19+
# Run the app
20+
npm run dev
21+
```
22+
23+
## Installation & Resources for learning Vue NodeGui
24+
25+
[Documentation](https://vue.nodegui.org/) - all of Vue NodeGui's documentation.
26+
[NodeGui](https://nodegui.org/) - all of NodeGui's documentation.
27+
28+
29+
30+
## Packaging app as a distributable
31+
32+
In order to distribute your finished app, you can use [@nodegui/packer](https://github.com/nodegui/packer)
33+
34+
### Step 1: (_**Run this command only once**_)
35+
36+
```sh
37+
npx nodegui-packer --init MyAppName
38+
```
39+
40+
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.
41+
42+
### Step 2: (_**Run this command every time you want to build a new distributable**_)
43+
44+
Next you can run the pack command:
45+
46+
```sh
47+
npm run build
48+
```
49+
50+
This will produce the js bundle along with assets inside the `./dist` directory
51+
52+
```sh
53+
npx nodegui-packer --pack ./dist
54+
```
55+
56+
This will build the distributable using @nodegui/packer based on your template. The output of the command is found under the build directory. You should gitignore the build directory.
57+
58+
More details about packer can be found here: https://github.com/nodegui/packer
59+
60+
## License
61+
62+
MIT

‎assets/demo.png

215 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.