Hello friends, Javascript newbie here. My command-...
# javascript
j
Hello friends, Javascript newbie here. My command-line tool worked fine under Node.js with
./gradlew jsNodeRun
Any pointers on how I could publish it on npmjs.org so that people can install it with
$ npm install -g kotlin-cli-starter
https://github.com/jmfayard/kotlin-cli-starter
b
Have a look at this
👍 1
I'd appreciate if you could let me know if it doesn't fit for your use-case. I'm always looking for new features to add to the plugin.
j
Hello @Big Chungus I just tried it and it went smoothly, thanks a lot! The commit https://github.com/jmfayard/kotlin-cli-starter/commit/3291deaa86b3ff09fcc0b0189b93ba3ff999f26a The package https://www.npmjs.com/package/kotlin-cli-starter
🎉 1
I have one question though: Currently my program is usable like this: $ node /usr/local/lib/node_modules/kotlin-cli-starter/kotlin-cli-starter.js and I would like to be simply
git-standup
, insatllled in /usr/local/bin how would you handle that?
b
Ah, that's nodejs specific. Lemmie find something for you to read.
Node JS:Understanding bin in package.json. (monkwhocode.com)
j
thanks a lot @Big Chungus I needed to some trials and errors but got it working https://twitter.com/jm_fayard/status/1394994394143641608
🎉 1