go-cli-publish

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i go-cli-publish

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

1.34 kB

Total Files

2

Last publish

Collaborators

  • sopnopriyo