Node.js Compiler
Compiler for Node.js which compiles your app into a single executable.
Installation
Add this line to your application's Gemfile:
gem 'node-compiler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install node-compiler
Usage
nodec [module_name] [module_version] [bin_name] [output_path]
Example
nodec coffee-script 1.11.1 coffee coffee-1.11.1-darwin-x64
Then the compiled product will be located at ./coffee-1.11.1-darwin-x64, ready to be distributed.
Optional Environment Variables
ENCLOSE_IO_KEEP_WORK_DIRENCLOSE_IO_CONFIGURE_ARGSENCLOSE_IO_MAKE_ARGSENCLOSE_IO_VCBUILD_ARGSENCLOSE_IO_NPMENCLOSE_IO_NPM_INSTALL_ARGSnpm_config_registry
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. Or without installing, run bundle exec nodec from the root of your project directory.
To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/enclose-io/node-compiler.
Contributors
- pmq20 - Minqi Pan <[email protected]>
- ibigbug - Yuwei Ba <[email protected]>
License
Copyright (c) 2016 Node.js Compiler contributors, under terms of the MIT License.