schnee effeckt und fehler Korektur
This commit is contained in:
80
node_modules/bin-build/readme.md
generated
vendored
80
node_modules/bin-build/readme.md
generated
vendored
@@ -13,55 +13,89 @@ $ npm install --save bin-build
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var BinBuild = require('bin-build');
|
||||
const binBuild = require('bin-build');
|
||||
|
||||
var build = new BinBuild()
|
||||
.src('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz')
|
||||
.cmd('./configure --disable-gifview --disable-gifdiff')
|
||||
.cmd('make install');
|
||||
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');
|
||||
});
|
||||
|
||||
build.run(function (err) {
|
||||
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
|
||||
|
||||
### new BinBuild(options)
|
||||
### binBuild.directory(directory, commands)
|
||||
|
||||
Creates a new `BinBuild` instance.
|
||||
#### directory
|
||||
|
||||
#### options.strip
|
||||
Type: `string`
|
||||
|
||||
Type: `number`
|
||||
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
|
||||
|
||||
Type: `Object`
|
||||
|
||||
##### strip
|
||||
|
||||
Type: `number`<br>
|
||||
Default: `1`
|
||||
|
||||
Strip a number of leading paths from file names on extraction.
|
||||
|
||||
### .src(str)
|
||||
### binBuild.url(url, commands, [options])
|
||||
|
||||
#### str
|
||||
#### url
|
||||
|
||||
Type: `string`
|
||||
|
||||
Accepts a URL to a archive containing the source code, a path to an archive or a
|
||||
path to a directory containing the source code.
|
||||
URL to a archive file containing the source code.
|
||||
|
||||
### .cmd(str)
|
||||
#### commands
|
||||
|
||||
#### str
|
||||
Type: `Array`
|
||||
|
||||
Type: `string`
|
||||
Commands to run when building.
|
||||
|
||||
Add a command to run when building.
|
||||
#### options
|
||||
|
||||
### .run(callback)
|
||||
Type: `Object`
|
||||
|
||||
#### callback(err)
|
||||
##### strip
|
||||
|
||||
Type: `function`
|
||||
Type: `number`<br>
|
||||
Default: `1`
|
||||
|
||||
Runs the build and returns an error if something has gone wrong
|
||||
Strip a number of leading paths from file names on extraction.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user