Initial commit of Go NPM

Allows you to distribute and install Go binaries through NPM.
This commit is contained in:
Sanath Kumar Ramesh
2017-08-07 21:50:34 -07:00
parent 9e7c0a2a46
commit e879e81a02
5 changed files with 180 additions and 0 deletions

17
example/package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "app",
"version": "0.0.1",
"description": "Example App",
"main": "index.js",
"scripts": {
"install": "go-npm"
},
"bin": {
"myBinaryName": "./bin"
},
"goBinary": {
"name": "myBinaryName",
"path": "./bin",
"url": "https://github.com/user/myrepo/releases/download/v{{version}}/myBinaryName{{platform}}_{{arch}}.tar.gz"
}
}