add standard
This commit is contained in:
Родитель
1ce13f2764
Коммит
b1416644d5
|
@ -4,7 +4,7 @@ var electron = require('./')
|
|||
|
||||
var proc = require('child_process')
|
||||
|
||||
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'});
|
||||
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'})
|
||||
child.on('close', function (code) {
|
||||
process.exit(code);
|
||||
process.exit(code)
|
||||
})
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"cache-clean": "rm -rf ~/.electron && rm -rf dist",
|
||||
"postinstall": "node install.js",
|
||||
"pretest": "npm run cache-clean && node install.js",
|
||||
"test": "tape test/*.js"
|
||||
"test": "standard && tape test/*.js"
|
||||
},
|
||||
"bin": {
|
||||
"electron": "cli.js"
|
||||
|
@ -23,6 +23,7 @@
|
|||
"devDependencies": {
|
||||
"home-path": "^0.1.1",
|
||||
"path-exists": "^1.0.0",
|
||||
"standard": "^5.4.1",
|
||||
"tape": "^3.0.1"
|
||||
},
|
||||
"author": "Mathias Buus",
|
||||
|
@ -31,4 +32,4 @@
|
|||
"url": "https://github.com/mafintosh/electron-prebuilt/issues"
|
||||
},
|
||||
"homepage": "https://github.com/mafintosh/electron-prebuilt"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
var tape = require('tape')
|
||||
var electron = require('../')
|
||||
var path = require('path');
|
||||
var path = require('path')
|
||||
var pathExists = require('path-exists')
|
||||
var getHomePath = require('home-path')()
|
||||
|
||||
tape('has local binary', function(t) {
|
||||
tape('has local binary', function (t) {
|
||||
t.ok(pathExists.sync(electron), 'electron was downloaded')
|
||||
t.end()
|
||||
})
|
||||
|
||||
tape('has cache folder', function(t) {
|
||||
tape('has cache folder', function (t) {
|
||||
t.ok(pathExists.sync(path.join(getHomePath, './.electron')), 'cache exists')
|
||||
t.end()
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче