Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
dignified pipeline support
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Apr 14, 2016
1 parent f78930a commit 3b039e1
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# 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
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
sudo: false
language: node_js
node_js:
- "4.0"
- '4'
- '5'
- stable

# Make sure we have new NPM.
# always use npm latest
before_install:
- npm install -g npm

script:
- npm run lint
- npm test
- npm i -g npm

addons:
firefox: 'latest'

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

script:
- npm run lint
- npm test
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
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"name": "libp2p-spdy",
"version": "0.3.0",
"description": "SPDY 3.1 implementation wrapper that is compatible with libp2p Stream Muxer expected interface",
"main": "src/index.js",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"lint": "standard",
"test:node": "mocha tests/*-test.js",
"test:browser": "node tests/browser-nodejs/test.js",
"test": "npm run test:node && npm run test:browser",
"compliance": "node tests/compliance.js"
"test": "dignified-test node",
"compliance": "node test/compliance.js",
"lint": "dignified-lint",
"release": "dignified-release node",
"release-minor": "dignified-release node --minor",
"release-major": "dignified-release node --major"
},
"pre-commit": [
"lint",
Expand All @@ -24,12 +26,13 @@
"author": "David Dias <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/diasdavid/njs-libp2p-spdy/issues"
"url": "https://github.com/diasdavid/js-libp2p-spdy/issues"
},
"homepage": "https://github.com/diasdavid/js-libp2p-spdy",
"devDependencies": {
"bl": "^1.1.2",
"chai": "^3.5.0",
"dignified.js": "^1.0.1",
"interface-stream-muxer": "^0.3.1",
"karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.2",
Expand All @@ -39,15 +42,11 @@
"karma-webpack": "^1.7.0",
"libp2p-websockets": "^0.2.1",
"pre-commit": "^1.1.2",
"standard": "^6.0.7",
"stream-pair": "^1.0.3",
"tape": "^4.2.0",
"timed-tape": "^0.1.0",
"webpack": "^2.1.0-beta.4"
"tape": "^4.2.0"
},
"dependencies": {
"browserify-zlib": "github:ipfs/browserify-zlib",
"mocha": "^2.4.5",
"spdy-transport": "^2.0.10"
}
}
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 spdy = require('spdy-transport')

exports = module.exports = function (transport, isListener) {
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions test/compliance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict'

const tape = require('tape')
const tests = require('interface-stream-muxer')
const spdy = require('./../src')

const common = {
setup: (t, cb) => cb(null, spdy),
teardown: (t, cb) => cb()
}

tests(tape, common)
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/spdy-test.js → test/test-lip2p-spdy.spec.js
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
14 changes: 0 additions & 14 deletions tests/compliance.js

This file was deleted.

0 comments on commit 3b039e1

Please sign in to comment.