diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..70ea7a67 --- /dev/null +++ b/.npmignore @@ -0,0 +1,33 @@ + +.DS_Store +tests/repo-tests* + +# 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 6c4753dc..e1d6320b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,17 @@ +sudo: false language: node_js node_js: - - '4' - - '5' + - 4 + - 5 +# 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 addons: firefox: 'latest' @@ -14,6 +20,5 @@ before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start -script: - - npm run lint - - npm test +after_success: + - npm run coverage-publish diff --git a/README.md b/README.md index 05eddac1..33b198b1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ IPFS Data Importing [![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![Build Status](https://travis-ci.org/ipfs/js-ipfs-data-importing.svg?style=flat-square)](https://travis-ci.org/ipfs/js-ipfs-data-importing) -![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square) +[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-ipfs-data-importing/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-ipfs-data-importing?branch=master) [![Dependency Status](https://david-dm.org/ipfs/js-ipfs-data-importing.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-data-importing) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..434211a7 --- /dev/null +++ b/circle.yml @@ -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 diff --git a/package.json b/package.json index ee4f53e7..43cffacf 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,17 @@ "name": "ipfs-data-importing", "version": "0.3.3", "description": "JavaScript implementation of the layout and chunking mechanisms used by IPFS", - "main": "src/index.js", + "main": "lib/index.js", + "jsnext: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" + "lint": "aegir-lint", + "build": "aegir-build", + "test": "aegir-test", + "test:node": "aegir-test node", + "test:browser": "aegir-test browser", + "release": "aegir-release", + "coverage": "aegir-coverage", + "coverage-publish": "aegir-coverage publish" }, "pre-commit": [ "lint", @@ -29,26 +32,16 @@ }, "homepage": "https://github.com/diasdavid/js-ipfs-data-importing#readme", "devDependencies": { - "brfs": "^1.4.3", + "aegir": "^2.1.1", "block-stream2": "^1.1.0", + "brfs": "^1.4.3", "bs58": "^3.0.0", "buffer-loader": "0.0.1", - "chai": "^3.4.1", - "dignified.js": "^1.0.0", + "chai": "^3.5.0", "fs-blob-store": "^5.2.1", "highland": "^2.7.4", "idb-plus-blob-store": "^1.0.0", "ipfs-repo": "^0.6.1", - "istanbul": "^0.4.1", - "json-loader": "^0.5.4", - "karma": "^0.13.19", - "karma-chrome-launcher": "^0.2.2", - "karma-cli": "^0.1.2", - "karma-firefox-launcher": "^0.1.7", - "karma-mocha": "^0.2.1", - "karma-sourcemap-loader": "^0.3.7", - "karma-spec-reporter": "0.0.26", - "karma-webpack": "^1.7.0", "mocha": "^2.3.4", "ncp": "^2.0.0", "pre-commit": "^1.1.2",