mapclone / bundle-node-app

Bundle up a node app for npm-free install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bundle-node-app

A bash script to bundle a node.js app for a platform of your choosing so it can be installed and run without npm/node being present.

Requirements

  • Your app must be a git repo.

Usage

$ bundle_node_app <gitsha> <platform+arch> [node_version]

The command should be run from the root of your project's git repo. Example:

cd my-project
bundle_node_app master darwin-x64 0.10.26

For projects that are not platform/arch specific (e.g. 100% js projects) the keyword universal may be used for the platform+arch argument to generate a single universal bundle.

Run from S3

Alternately you can pull the script from S3 with curl and run it, specifying parameters as environment variables:

cd my-project
curl https://s3.amazonaws.com/mapbox/apps/bundle-node-app/v0.2.0/run | GS=master NP=linux-x64 NV=0.10.26 bash

About

Bundle up a node app for npm-free install


Languages

Language:Shell 100.0%