go-cli-publish
v1.0.3
Published
### In this tutorial , I have followed this [NPM GO] (https://www.npmjs.com/package/go-npm) package
Downloads
13
Maintainers
Readme
Publishing the go cli across multiple platform e.g. windows, linux and Osx
In this tutorial , I have followed this [NPM GO] (https://www.npmjs.com/package/go-npm) package
After that I have added the followings in package.json
"scripts": {
"postinstall": "go-npm install",
"preuninstall": "go-npm uninstall"
},
"goBinary": {
"name": "go-cli-publish",
"path": "./bin",
"url": "https://github.com/sopnopriyo/go-cli-publish/files/2490060/go-cli-package_2.0.0_darwin_amd64.tar.gz"
},
Then, I published the package using npm publish
Now, let the world download your package using npm install -g go-cli-publish
Check that it is working:
Type go-cli-publish
in your commandline.
and expect to see Hello from Sopnopriyo Go Publish Test