diff --git a/README.md b/README.md index 4ed01418..6b077832 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,25 @@ The application is written using Electron with Angular and installs on Windows, ```bash npm install +npm reset # Only necessary if you have previously run the CLI app +npm rebuild npm run electron ``` +**Run the CLI** + +```bash +npm install +npm reset # Only necessary if you have previously run the desktop app +npm run build:cli:watch +``` + +You can then run commands from the `./build-cli` folder: + +```bash +node ./build-cli/bwdc.js --help +``` + # Contribute Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute by reading the [`CONTRIBUTING.md`](CONTRIBUTING.md) file. diff --git a/package-lock.json b/package-lock.json index bb8f90ed..5900172f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5763,14 +5763,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5790,8 +5788,7 @@ "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", @@ -5939,7 +5936,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } diff --git a/package.json b/package.json index 243da517..1a6911c0 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "sub:update": "git submodule update --remote", "sub:pull": "git submodule foreach git pull origin master", "sub:commit": "npm run sub:pull && git commit -am \"update submodule\"", - "postinstall": "./node_modules/.bin/electron-rebuild && npm run sub:init", + "postinstall": "npm run sub:init", + "rebuild": "./node_modules/.bin/electron-rebuild", + "reset": "rimraf ./node_modules/keytar/* && npm install", "lint": "tslint src/**/*.ts || true", "lint:fix": "tslint src/**/*.ts --fix", "build": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\"",