nem
v1.0.0
Published
npm + gem = nem: Publish dependency free Ruby CLI gems on npm
Downloads
10
Readme
nem
![[npm]](https://img.shields.io/npm/v/nem.svg)
Contrary to common belief, npm[https://www.npmjs.com/] does not stand for "node package manager". In fact it is a package make installer, which just happens to be written in node. Hence it is not only meant to be used for node (or iojs[https://iojs.org/]) modules. It is also great for command-line tools written in Ruby!
Install
Either via rubygems:
$ gem install nemOr via npm:
$ npm install -g nemUsage
Build your Ruby CLI gem as usual
Don't use any dependencies (other than included in Ruby's standard library)
Write your gemspec (example: nem.gemspec)
Run the following command to generate a
package.jsonfile:$ nem
Optional: Command-line arguments to
nemwill be interpreted as keywords for npm's searchThat's it. Only step left: Publish it on the rubygems & npm public registries
nem's own package.json was generated by:
$ nem ruby gem npmInstall it locally
Via npm
Instructions. In short:
$ npm install .Via rubygems
Instructions. In short:
$ gem build *.gemspec
$ gem install *.gem(replace * with the actual gem name)
Publish
On npm
Instructions. In short:
$ npm publish .On rubygems
Instructions. In short:
$ gem build *.gemspec
$ gem push *.gem(replace * with the actual gem name)
Legal
nem is relaesed under the MIT license. npm is © npm, Inc. nem is not affiliated with npm in any way.
