Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create the libp2p base class #43

Merged
merged 6 commits into from
Nov 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
Expand All @@ -23,8 +24,12 @@ coverage
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

dist
lib
28 changes: 28 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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

test
40 changes: 30 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
use_sudo: false
sudo: false
language: node_js
node_js:
- 4
- 5

branches:
only:
- master
matrix:
include:
- node_js: 4
env: CXX=g++-4.8
- node_js: 6
env:
- SAUCE=true
- CXX=g++-4.8
- node_js: stable
env: CXX=g++-4.8

# Make sure we have new NPM.
before_install:
- npm i -g npm
# Workaround for a permissions issue with Travis virtual machine images
- npm install -g npm

script:
- npm run lint
- npm test
- npm run coverage

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

after_success:
- npm run coverage-publish

addons:
firefox: 'latest'
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
117 changes: 77 additions & 40 deletions README.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
machine:
node:
version: stable

dependencies:
pre:
- google-chrome --version
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get --only-upgrade install google-chrome-stable
- google-chrome --version
6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Examples list

Here are some examples built with libp2p bundles.

- https://github.com/ipfs/js-libp2p-ipfs/tree/master/examples/echo
- https://github.com/ipfs/js-libp2p-ipfs/tree/master/examples/chat
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added examples/browser-chat/.gitkeep
Empty file.
Empty file added examples/browser-echo/README.md
Empty file.
Empty file.
Empty file.
Empty file added examples/node-chat/.gitkeep
Empty file.
Empty file added examples/node-echo/README.md
Empty file.
41 changes: 22 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"name": "libp2p",
"version": "0.1.1",
"description": "Node.js implementation of libp2p",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"description": "JavaScript Skeleton for libp2p bundles",
"main": "src/index.js",
"scripts": {
"lint": "dignified-lint",
"build": "dignified-build",
"test": "dignified-test",
"test:node": "dignified-test node",
"test:browser": "dignified-test browser",
"release": "dignified-release"
"test": "aegir-test node",
"lint": "aegir-lint",
"release": "aegir-release node",
"release-minor": "aegir-release --type minor",
"release-major": "aegir-release --type major",
"coverage": "aegir-coverage",
"coverage-publish": "aegir-coverage publish"
},
"repository": {
"type": "git",
"url": "https://github.com/diasdavid/js-libp2p.git"
"url": "https://github.com/libp2p/js-libp2p.git"
},
"keywords": [
"IPFS"
],
"engines": {
"node": "^4.0.0"
"node": ">=4.0.0",
"npm": ">=3.0.0"
},
"pre-commit": [
"lint",
Expand All @@ -29,18 +30,20 @@
"author": "David Dias <daviddias@ipfs.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/diasdavid/js-libp2p/issues"
"url": "https://github.com/libp2p/js-libp2p/issues"
},
"homepage": "https://github.com/diasdavid/js-libp2p",
"devDependencies": {
"chai": "^3.5.0",
"dignified.js": "^1.0.0",
"libp2p-spdy": "^0.1.0",
"libp2p-swarm": "^0.26.0",
"libp2p-tcp": "^0.8.0",
"multiaddr": "^2.0.3",
"peer-id": "^0.4.0",
"peer-info": "^0.7.1",
"aegir": "^9.1.2",
"pre-commit": "^1.1.1"
},
"dependencies": {
"libp2p-swarm": "^0.26.3",
"mafmt": "^2.1.2",
"multiaddr": "^2.1.1",
"peer-book": "^0.3.0",
"peer-id": "^0.8.0",
"peer-info": "^0.8.1"
}
}
Loading