Node distribution shell script. nDistro allows you to build your own node distribution using a simple configuration file, without depending on large programs. To contribute a node binary head over to nodes.
$ cd /usr/local/bin && curl https://github.com/visionmedia/ndistro/raw/master/install | sh
A nDistro is simply a dotfile named .ndistro which defines module and node binary version dependencies. In the example below we specify the node binary version 0.1.102, as well as several 3rd party modules.
node 0.1.102 module senchalabs connect module visionmedia express 1.0.0beta2 module visionmedia connect-form module visionmedia connect-redis module visionmedia jade module visionmedia ejs
Follow the installation step above to gain access to the ndistro executable, and then in your distro directory that contains .ndistro run:
To share distributions create a .ndistro GitHub repository, after which you can push several distributions, for some examples view mine here.
To list a user's distributions execute:
$ ndistro visionmedia
To install one to the CWD run:
$ ndistro visionmedia redis
or $ ndistro visionmedia express
Updating A Library
Updating a library with nDistro is easy, first remove it:
$ rm -fr modules/express
or if you wish to have a clean start and re-install everything:
$ rm -fr bin modules && ndistro
Specifies the version of node to install.
module <user> <project> [version]
Installs user's project at the given version or HEAD.
module visionmedia express module visionmedia express 1.0.0beta2
(The MIT License)
Copyright (c) 2010 TJ Holowaychuk <firstname.lastname@example.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.