From 8937fa5528be853e3d567e98fbfb702c4db81a1e Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 15 Apr 2016 14:09:49 +0200 Subject: [PATCH] refactor: use aegir --- .npmignore | 29 +++++++++++++++++++++++++++++ .travis.yml | 8 +++++++- circle.yml | 3 +++ package.json | 12 +++++++----- 4 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 .npmignore create mode 100644 circle.yml diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..00a160d --- /dev/null +++ b/.npmignore @@ -0,0 +1,29 @@ +# 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 + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git +node_modules + +test diff --git a/.travis.yml b/.travis.yml index 7a6d007..c4fc76c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,17 @@ +sudo: false language: node_js node_js: - 4 - 5 +# Make sure we have new NPM. before_install: - - npm i -g npm + - npm install -g npm script: - npm run lint - npm test + - npm run coverage + +after_success: + - npm run coverage-publish diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..6d74323 --- /dev/null +++ b/circle.yml @@ -0,0 +1,3 @@ +machine: + node: + version: stable diff --git a/package.json b/package.json index d5711eb..a8ee258 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,12 @@ "description": "Node.js implementation of the µTP module that libp2p uses, which implements the abstract-connection interface", "main": "lib/index.js", "scripts": { - "lint": "dignified-lint", - "test": "dignified-test node", - "build": "dignified-build", - "release": "dignified-release" + "lint": "aegir-lint", + "test": "aegir-test node", + "build": "aegir-build only-node", + "release": "aegir-release only-node", + "coverage": "aegir-coverage", + "coverage-publish": "aegir-coverage publish" }, "pre-commit": [ "lint", @@ -26,8 +28,8 @@ }, "homepage": "https://github.com/diasdavid/js-libp2p-utp", "devDependencies": { + "aegir": "^2.1.1", "chai": "^3.5.0", - "dignified.js": "^1.0.0", "interface-connection": "^0.0.3", "interface-transport": "^0.1.1", "pre-commit": "^1.1.2",