Skip to content

Commit

Permalink
Merge pull request #86 from unindented/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
malept authored Apr 7, 2018
2 parents a3dddf8 + b41cbf3 commit 7ebeb9b
Show file tree
Hide file tree
Showing 13 changed files with 403 additions and 477 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/example/dist/
/example/node_modules/
/node_modules/
/test/fixtures/out/
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ deploy:
secure: SCEakXCfoTm9TKgRczg3UlIt6hN4Nk8UDv6w93rYrNQSLX6JTLBpDHCUjVDCLLctox5MqIpPZ52x2IKzfiZh0qmM/htbDRT8DPl8lpd9Yw8wrxEHQjAvykAcR7sEX1fr2r2ptN7TwJNsJFqR6GwWMFiOk+Z1yZEZ1z2LoAQBjwbaN9cEeeKGXfN7Obq8xuIlvHyj59bqbcRxADy6C8Zlwvy3k/tEV70/LGwC2Mb7Fabh8MbznALTcYf9J02B8eOrLmQTB4kf0VctJuOpBkFdsbI4ZFvGWFzTeGRb5N577+CD8r/ueoVoxxWG2UE/Lzd/1j9l5IyEnhKA/0YVuU0pDYN+uXvIXHBoKPn35h0IfI6qVXU5756/oGvGH1OIBr0BfHvJZ/yVPo1/FHogdR6rMOPKBbytWEKqZtSm+HPq2kGKnZAD64hETJitQ/T9nPq2HZE/yh3JPWvBbJbutWf+LVyPc0F0CqnAPIDuuLEJ2ky2j72qFQrVXZESdIjAfHBK8G04zuK0acxbQBUgvuU0rRqLoLf/qr8srr2J/uJP1HDyccH5BXa2EQiuqWHbVk9RLcE/SEJ1kT4yQbl9MMqAx5aL+90Um5g0foE7zNBUSchVpF19k5r1Ai9ehcHDFa6LivySKjbRZESAiPzG0BhdYgVuMaPIDRsF89eFByxCsbc=
on:
tags: true

after_success:
- rpmlint test/fixtures/out/*.rpm
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"build": "npm run clean && npm run exe32 && npm run rpm32 && npm run exe64 && npm run rpm64"
},
"devDependencies": {
"electron": "~1.8.0",
"electron-installer-redhat": "*",
"electron-packager": "*",
"electron-prebuilt": "*",
"rimraf": "*"
"electron-packager": "^11.1.0",
"rimraf": "^2.6.2"
}
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,33 @@
"electron-installer-redhat": "src/cli.js"
},
"scripts": {
"clean": "rimraf test/fixtures/out",
"lint": "eslint .",
"spec": "mocha",
"test": "npm run clean && npm run lint && npm run spec"
"test": "npm run lint && npm run spec"
},
"dependencies": {
"asar": "^0.14.0",
"async": "^2.6.0",
"cross-spawn-promise": "^0.10.1",
"debug": "^3.1.0",
"fs-extra": "^4.0.3",
"fs-extra": "^5.0.0",
"glob": "^7.1.2",
"glob-promise": "^3.4.0",
"lodash": "^4.17.4",
"nodeify": "^1.0.1",
"parse-author": "^2.0.0",
"temp": "^0.8.3",
"tmp-promise": "^1.0.4",
"word-wrap": "^1.2.3",
"yargs": "10.0.3"
"yargs": "11.0.0"
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.13.1",
"eslint-config-standard": "^10.2.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1",
"mocha": "^4.0.1",
"retry": "^0.10.1",
"rimraf": "^2.6.2"
"mocha": "^5.0.4",
"promise-retry": "^1.1.1"
}
}
10 changes: 4 additions & 6 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ const argv = yargs
console.log('Creating package (this may take a while)')

const options = _.omit(argv, ['$0', '_', 'version'])
installer(options, function (err) {
if (err) {
installer(options)
.then(() => console.log(`Successfully created package at ${argv.dest}`))
.catch(err => {
console.error(err, err.stack)
process.exit(1)
}

console.log('Successfully created package at ' + argv.dest)
})
})
Loading

0 comments on commit 7ebeb9b

Please sign in to comment.