Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from JGAntunes/master
Browse files Browse the repository at this point in the history
Dignified pipeline support
  • Loading branch information
daviddias committed Apr 12, 2016
2 parents 6cce9e3 + a1d5d06 commit 349a362
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ node_modules

# Optional REPL history
.node_repl_history

# Dignified.js builds
dist
lib
26 changes: 26 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
node_js:
- '4'
- '5'

before_install:
- npm i -g npm
# Workaround for a permissions issue with Travis virtual machine images

addons:
firefox: 'latest'

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- npm run lint
- npm test
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,25 @@ js-libp2p-ipfs

> libp2p build (module) used in js-ipfs
## Usage
# Installation

## API
## npm

## Examples
```sh
> npm i libp2p-ipfs
```

## Use in Node.js

```js
const lip2p = require('libp2p-ipfs')
```

# Usage

# API

# Examples

- Start two libp2p Nodes (create and make them listen)
- Set up a handler for a protocol (through multistream)
Expand Down
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
machine:
node:
version: stable
3 changes: 3 additions & 0 deletions examples/example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
'use strict'
/* eslint-disable no-console */

const Peer = require('peer-info')
const libp2p = require('../src')
const multiaddr = require('multiaddr')
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"name": "libp2p-ipfs",
"version": "0.2.0",
"description": "The libp2p build (module) used by js-ipfs on Node.js",
"main": "src/index.js",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"test": "mocha tests/test-*.js",
"lint": "standard"
"test": "dignified-test node",
"build": "dignified-build node",
"lint": "dignified-lint",
"release": "dignified-release node",
"release-minor": "dignified-release node --minor",
"release-major": "dignified-release node --major"
},
"repository": {
"type": "git",
Expand All @@ -22,9 +27,8 @@
"homepage": "https://github.com/ipfs/js-libp2p-ipfs#readme",
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^2.4.5",
"pre-commit": "^1.1.2",
"standard": "^6.0.7"
"dignified.js": "^1.0.1",
"pre-commit": "^1.1.2"
},
"dependencies": {
"libp2p-spdy": "^0.2.3",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Swarm = require('libp2p-swarm')
const Peer = require('peer-info')
const TCP = require('libp2p-tcp')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
/* eslint-env mocha */

const expect = require('chai').expect
Expand Down

0 comments on commit 349a362

Please sign in to comment.