From dda0b3c7c994dc32cad5ba5e70649a27f0571bb6 Mon Sep 17 00:00:00 2001 From: Ross Phillips Date: Sat, 10 Oct 2020 21:46:44 +1300 Subject: [PATCH] Wrap package script --- README.md | 8 +++----- package.json | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 32b19aa..1efec86 100644 --- a/README.md +++ b/README.md @@ -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//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//build` directory (ignored in git). - ## License MIT diff --git a/package.json b/package.json index 0bf00aa..8d921fe 100644 --- a/package.json +++ b/package.json @@ -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" },