add npm run open-config to get to config file quickly

This commit is contained in:
Feross Aboukhadijeh
2016-05-09 17:10:51 +02:00
parent 558b6c1648
commit 9d4aeaedd3
2 changed files with 10 additions and 0 deletions

8
bin/open-config.js Executable file
View File

@@ -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)

View File

@@ -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",