mirror of
https://github.com/ershisan99/go-npm.git
synced 2025-12-16 12:33:24 +00:00
Initial commit of Go NPM
Allows you to distribute and install Go binaries through NPM.
This commit is contained in:
17
example/package.json
Normal file
17
example/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user