-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Uses bin-wrapper to download the needed binary - Removed .editorconfig in favor of prettier - Re-saved all files w/ the prettier changes Fixes: #3 PR-URL: #8 Reviewed-By: Jamie Young @jamsyoung <jmeyoung@gmail.com>
- Loading branch information
Showing
12 changed files
with
96 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
package-lock.json | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.2.2 | ||
node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
// only supports macos and linux | ||
// assumption is the package.json's os property is limiting the package to these oses | ||
// i am sure if this is installed on some other os fire will rain from the sky | ||
|
||
const path = require('path'); | ||
const fs = require('fs'); | ||
const BinWrapper = require('bin-wrapper'); | ||
const base = 'https://github.com/stedolan/jq/releases/download/jq-1.5'; | ||
const platform = process.platform === 'darwin' ? 'osx' : 'linux'; | ||
const arch = process.platform === 'darwin' ? 'amd64' : process.arch(); | ||
const jqExecutableName = `jq-${platform}-${arch}`; | ||
const bin = new BinWrapper() | ||
.src(`${base}/jq-osx-amd64`, 'darwin') | ||
.src(`${base}/jq-linux64`, 'linux', 'x64') | ||
.src(`${base}/jq-linux32`, 'linux', 'x32') | ||
.dest(path.join('vendor')) | ||
.use(jqExecutableName) | ||
.version('>=1.5'); | ||
|
||
bin.run(['--version'], err => { | ||
fs.symlinkSync(jqExecutableName, path.join('vendor', 'jq')); | ||
}); |
This file was deleted.
Oops, something went wrong.