ndistro

0.4.0 • Public • Published

nDistro

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.

Installation

curl:

 $ cd /usr/local/bin && curl https://github.com/visionmedia/ndistro/raw/master/install | sh

npm:

$ npm install ndistro

Example distribution

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
module learnboost node-canvas 0.4.0 canvas

Follow the installation step above to gain access to the ndistro executable, and then in your distro directory that contains .ndistro run:

$ ndistro

Sharing Distributions

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

then execute ndistro again:

$ ndistro

or if you wish to have a clean start and re-install everything:

$ rm -fr bin modules && ndistro

node

Specifies the version of node to install.

node 0.1.102

module <user> <project> [version] [alias]

Installs user's project at the given version or HEAD.

module visionmedia express
module visionmedia express 1.0.0beta2
  module felixge node-formidable master formidable

Requiring Your Modules

When executing ./bin/node, node will first look at ../lib/node for modules, which means when you install modules via ndistro, you do not need to require() them relative, you may simply require('express') etc.

Contributors

License

(The MIT License)

Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ndistro

Weekly Downloads

3

Version

0.4.0

License

none

Last publish

Collaborators

  • tjholowaychuk