From 558b6c16482c297b0193a2729af42dea5f656836 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 17:10:35 +0200 Subject: [PATCH 1/3] add new package.json keywords --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 3bf0bfcb..ba73ba5a 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,10 @@ "desktop", "electron", "electron-app", + "hybrid webtorrent client", + "mad science", + "torrent client", + "torrent", "webtorrent" ], "license": "MIT", From 9d4aeaedd34293790de90fab7623a38dcc420e67 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 17:10:51 +0200 Subject: [PATCH 2/3] add `npm run open-config` to get to config file quickly --- bin/open-config.js | 8 ++++++++ package.json | 2 ++ 2 files changed, 10 insertions(+) create mode 100755 bin/open-config.js diff --git a/bin/open-config.js b/bin/open-config.js new file mode 100755 index 00000000..b005a1d8 --- /dev/null +++ b/bin/open-config.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +var config = require('../config') +var open = require('open') +var path = require('path') + +var configPath = path.join(config.CONFIG_PATH, 'config.json') +open(configPath) diff --git a/package.json b/package.json index ba73ba5a..c687fa4f 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "minimist": "^1.2.0", "mkdirp": "^0.5.1", "nobin-debian-installer": "^0.0.9", + "open": "0.0.5", "plist": "^1.2.0", "rimraf": "^2.5.2", "run-series": "^1.1.4", @@ -76,6 +77,7 @@ }, "scripts": { "clean": "node ./bin/clean.js", + "open-config": "node ./bin/open-config.js", "package": "node ./bin/package.js", "start": "electron .", "test": "standard && ./bin/check-deps.js", From 452bbb60c4f9c858ae2cc62146a30d4eab1c74a1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 17:12:17 +0200 Subject: [PATCH 3/3] use path.join --- renderer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/index.js b/renderer/index.js index c0cbc2ee..2779780c 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -26,7 +26,7 @@ var TorrentSummary = require('./lib/torrent-summary') var {setDispatch} = require('./lib/dispatcher') setDispatch(dispatch) -appConfig.filePath = config.CONFIG_PATH + path.sep + 'config.json' +appConfig.filePath = path.join(config.CONFIG_PATH, 'config.json') // Electron apps have two processes: a main process (node) runs first and starts // a renderer process (essentially a Chrome window). We're in the renderer process,