Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Expose cli in a binary #22

Open
gregberge opened this issue Sep 13, 2017 · 2 comments
Open

Expose cli in a binary #22

gregberge opened this issue Sep 13, 2017 · 2 comments

Comments

@gregberge
Copy link

Hello,

I think you should expose cli into a binary. It would be easier for end user.

@JBustin
Copy link
Contributor

JBustin commented Jan 14, 2019

Hello @neoziro,

Yes, i've tried, but i had a mysterious bug.
To go quickly, i've exposed project commands in node script.
I have to find some time to do it.

[Edit] do you want to contribute ? ;)

@gregberge
Copy link
Author

Exposing a binary is easy, in your package.json:

{
  "bin": {
     "my-binary-name": "./path/to/binary.js"
   }
}

You binary file must have two things:

  • execution rights (chmod +x your-file.js)
  • #!/usr/bin/env node at the top of the file

And I am sorry but I don't have time to contribute, good luck!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants