Skip to content

Commit

Permalink
Wrap package script
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips-nz committed Oct 10, 2020
1 parent a45694a commit dda0b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,18 @@ This creates the `deploy` directory with a template. Here you can add icons, cha

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

Next you can run the pack command:
Creates the JavaScript bundle along with assets inside the `dist` directory:

```sh
npm run build
```

This creates the JavaScript bundle along with assets inside the `dist` directory.
Build the distributable based on the template, the output is in the `/deploy/<platform>/build` directory (ignored in git):

```sh
npx nodegui-packer --pack ./dist
npm run package
```

This builds the distributable based on the template. The output is in the `/deploy/<platform>/build` directory (ignored in git).

## License

MIT
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"private": true,
"scripts": {
"build": "webpack -p",
"package": "nodegui-packer --pack ./dist",
"start": "webpack && qode ./dist/index.js",
"debug": "webpack && qode --inspect ./dist/index.js"
},
Expand Down

0 comments on commit dda0b3c

Please sign in to comment.