Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Apr 21, 2017
1 parent f629c71 commit 650fa8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions scripts/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# vi: set ft=yaml :
env:
shelljs: true
rules:
no-console: 0
2 changes: 0 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const res = join(dir, 'res')
const electron = require('electron/package')

target.all = (args = []) => {
const tag = 'build'

const platform = args[0] || process.platform
const arch = args[1] || process.arch

Expand Down
11 changes: 3 additions & 8 deletions scripts/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('shelljs/make')

const { join, resolve, relative } = require('path')
const { join, resolve } = require('path')
const release = require('../lib/common/release')
const { platform } = process

Expand All @@ -13,11 +13,11 @@ target.all = () => {
}


target.darwin = (args = []) => {
target.darwin = () => {
assert(platform === 'darwin', 'must be run on macOS')
}

target.win32 = async (args = []) => {
target.win32 = async () => {
assert(platform === 'win32', 'must be run on Windows')

const { createWindowsInstaller } = require('electron-winstaller')
Expand Down Expand Up @@ -45,9 +45,4 @@ function assert(predicate, msg, tag = 'pack') {
}
}

function find(args) {
return exec(`find ${args}`, { silent: true }).stdout.trim().split('\n')
}


module.exports = Object.assign({}, target)

0 comments on commit 650fa8b

Please sign in to comment.