-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# nut-bin | ||
# nut-bin | ||
|
||
> Binary wrapper for [nut](https://matthieudelaro.github.io/nut/) - docker cli tool | ||
## How to install | ||
|
||
$ npm install -g nut-bin | ||
|
||
## Nut | ||
**Nut** is a command line tool which offers a solution to common frustrations of developers. It hides the complexity of development environments, and extends them with customizable macros. Whether you develop in Swift, Go, Java, or C++, what you need is build/run/test the app. So just do it: | ||
|
||
$ nut --init # create nut.yml file (equivalent of package.json for npm) | ||
$ nut build | ||
$ nut run | ||
$ nut test | ||
|
||
**Nut** mounts the current folder in a [Docker](https://www.docker.com/) container, and executes commands on your behalf, according to the project configuration. The configuration is read from `nut.yml` file, in the current folder. You can choose the Docker image to use, declare volumes to mount, and define commands (called macros) such as *build*, *run*, and *test*. | ||
|
||
Nut is in early stage of development. It has been tested on Ubuntu and on MacOS with *Docker for Mac*. Feedbacks and contributions to add features and to make Nut run on other systems are welcome (Windows, Docker Toolbox, etc). | ||
|
||
Check the [wiki](https://github.com/matthieudelaro/nut/wiki) to read some tutorials (GPU support, Caffe, TensorFlow, etc). | ||
|
||
Full documentation can found in the main repository - https://github.com/matthieudelaro/nut | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
var BinWrapper = require('bin-wrapper'); | ||
var path = require('path'); | ||
var base = 'https://github.com/matthieudelaro/nut/raw/manualbuild/release/nutOSX' | ||
var BASE = 'https://github.com/matthieudelaro/nut/raw/manualbuild/release/' | ||
|
||
module.exports = new BinWrapper() | ||
.src(base, 'darwin') | ||
.dest(path.join('../release')).use('nutOSX').version('0.1.0'); | ||
.src(BASE + 'nutOSX', 'darwin') | ||
.src(BASE + 'nutLinux', 'linux', 'x64') | ||
// .src(BASE + 'Windows', 'win32', 'x64') | ||
.dest(path.join(__dirname, '../vendor')) | ||
.use((process.platform === 'linux' ? 'nutLinux' : 'nutOSX')) | ||
.version('0.1.0'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,21 @@ | |
"lib" | ||
], | ||
"scripts": { | ||
"test": "npm run postinstall && ava", | ||
"postinstall": "node lib/install.js" | ||
}, | ||
"author": "", | ||
"author": { | ||
"name": "David Wisner", | ||
"email": "[email protected]", | ||
"url": "rnbwd.com" | ||
}, | ||
"license": "ISC", | ||
"dependencies": { | ||
"bin-wrapper": "^3.0.2", | ||
"logalot": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"bin-check": "^3.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
'use strict'; | ||
var test = require('ava'); | ||
var binCheck = require('bin-check'); | ||
var nut = require('./cli.js'); | ||
import test from 'ava'; | ||
import binCheck from 'bin-check'; | ||
import flow from './'; | ||
|
||
test('return path to binary and verify that it is working', function (t) { | ||
t.plan(2); | ||
|
||
binCheck(nut, ['--version'], function (err, stdout) { | ||
t.assert(!err, err); | ||
t.assert(stdout); | ||
}); | ||
test('returns path to binary and verify that it is working', async t => { | ||
t.true(await binCheck(flow, ['--version'])); | ||
}); |
Binary file not shown.