Easily build binaries
JavaScript
Permalink
Failed to load latest commit information.
fixtures Various tweaks Apr 15, 2016
.editorconfig
.gitattributes
.gitignore
.travis.yml Meta tweaks Sep 8, 2016
index.js
license
package.json
readme.md Improve docs and remove `dependencies` option Oct 26, 2016
test.js Improve docs and remove `dependencies` option Oct 26, 2016

readme.md

bin-build Build Status

Easily build binaries

Install

$ npm install --save bin-build

Usage

const binBuild = require('bin-build');

binBuild.url('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz', [
    './configure --disable-gifview --disable-gifdiff',
    'make install'
]).then(() => {
    console.log('gifsicle built successfully');
});

binBuild.file('gifsicle-1.80.tar.gz', [
    './configure --disable-gifview --disable-gifdiff',
    'make install'
]).then(() => {
    console.log('gifsicle built successfully');
});

API

binBuild.dir(dir, commands)

dir

Type: string

Path to a directory containing the source code.

commands

Type: Array

Commands to run when building.

binBuild.file(file, commands, [options])

file

Type: string

Path to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

strip

Type: number
Default: 1

Strip a number of leading paths from file names on extraction.

binBuild.url(url, commands, [options])

url

Type: string

URL to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

strip

Type: number
Default: 1

Strip a number of leading paths from file names on extraction.

License

MIT © Kevin Mårtensson