-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish bin so that it can be easily used by other editors #134
Comments
This is certainly something that can be considered. I will have to do some research to see how difficult this would be. Do you have a workaround that you can use for the time being, @prabirshrestha? |
It should be very simple to implement this. You would need is to expose the Add this to your package.json and after running
You can read a tutorial about this at http://markmarkoh.com/nodejs-npm-and-executables/ |
Using the "bin" field in package.json, it is possible to declare an executable for a package. Declared the "bin" field to point at ./lib/server.js so that one just has to install the npm module globally and then launch the executable. Signed-off-by: Remy Suen <[email protected]>
It seems that referencing the server.js directly in package.json does not appear to pass on the arguments on the command line to the script. As other Node.js projects that uses a binary seems to explicitly create a separate script for the launching of an executable, we have done the same and created a bin/docker-langserver file to startup lib/server.js. Signed-off-by: Remy Suen <[email protected]>
The Please use version 0.0.4 of the npm module and not 0.0.3. |
Thanks. It works. |
I'm working on the language server provider plugin for vim and would like to have a binary so that npm install would just work.
Would it be possible to publish a bin file so when I run
npm install -g dockerfile-language-server-nodejs
, I can run the server by runningdocker-langserver --stdio
?The text was updated successfully, but these errors were encountered: