Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 94daa32

Browse files
committed
Merge pull request #26 from ipfs/aegir
refactor: Use aegir
2 parents c9d259d + 0b46dc9 commit 94daa32

File tree

5 files changed

+71
-28
lines changed

5 files changed

+71
-28
lines changed

.npmignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
.DS_Store
3+
tests/repo-tests*
4+
5+
# Logs
6+
logs
7+
*.log
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# node-waf configuration
24+
.lock-wscript
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
28+
29+
# Dependency directory
30+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
31+
node_modules
32+
33+
test

.travis.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
sudo: false
12
language: node_js
23
node_js:
3-
- '4'
4-
- '5'
4+
- 4
5+
- 5
56

7+
# Make sure we have new NPM.
68
before_install:
7-
- npm i -g npm
8-
# Workaround for a permissions issue with Travis virtual machine images
9+
- npm install -g npm
10+
11+
script:
12+
- npm run lint
13+
- npm test
14+
- npm run coverage
915

1016
addons:
1117
firefox: 'latest'
@@ -14,6 +20,5 @@ before_script:
1420
- export DISPLAY=:99.0
1521
- sh -e /etc/init.d/xvfb start
1622

17-
script:
18-
- npm run lint
19-
- npm test
23+
after_success:
24+
- npm run coverage-publish

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IPFS Data Importing
66
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
77
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
88
[![Build Status](https://travis-ci.org/ipfs/js-ipfs-data-importing.svg?style=flat-square)](https://travis-ci.org/ipfs/js-ipfs-data-importing)
9-
![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square)
9+
[![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)
1010
[![Dependency Status](https://david-dm.org/ipfs/js-ipfs-data-importing.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-data-importing)
1111
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1212

circle.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
machine:
2+
node:
3+
version: stable
4+
5+
dependencies:
6+
pre:
7+
- google-chrome --version
8+
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
9+
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
10+
- sudo apt-get update
11+
- sudo apt-get --only-upgrade install google-chrome-stable
12+
- google-chrome --version

package.json

+13-20
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
"name": "ipfs-data-importing",
33
"version": "0.3.3",
44
"description": "JavaScript implementation of the layout and chunking mechanisms used by IPFS",
5-
"main": "src/index.js",
5+
"main": "lib/index.js",
6+
"jsnext:main": "src/index.js",
67
"scripts": {
7-
"lint": "dignified-lint",
8-
"build": "dignified-build",
9-
"test": "dignified-test",
10-
"test:node": "dignified-test node",
11-
"test:browser": "dignified-test browser",
12-
"release": "dignified-release"
8+
"lint": "aegir-lint",
9+
"build": "aegir-build",
10+
"test": "aegir-test",
11+
"test:node": "aegir-test node",
12+
"test:browser": "aegir-test browser",
13+
"release": "aegir-release",
14+
"coverage": "aegir-coverage",
15+
"coverage-publish": "aegir-coverage publish"
1316
},
1417
"pre-commit": [
1518
"lint",
@@ -29,26 +32,16 @@
2932
},
3033
"homepage": "https://github.com/diasdavid/js-ipfs-data-importing#readme",
3134
"devDependencies": {
32-
"brfs": "^1.4.3",
35+
"aegir": "^2.1.1",
3336
"block-stream2": "^1.1.0",
37+
"brfs": "^1.4.3",
3438
"bs58": "^3.0.0",
3539
"buffer-loader": "0.0.1",
36-
"chai": "^3.4.1",
37-
"dignified.js": "^1.0.0",
40+
"chai": "^3.5.0",
3841
"fs-blob-store": "^5.2.1",
3942
"highland": "^2.7.4",
4043
"idb-plus-blob-store": "^1.0.0",
4144
"ipfs-repo": "^0.6.1",
42-
"istanbul": "^0.4.1",
43-
"json-loader": "^0.5.4",
44-
"karma": "^0.13.19",
45-
"karma-chrome-launcher": "^0.2.2",
46-
"karma-cli": "^0.1.2",
47-
"karma-firefox-launcher": "^0.1.7",
48-
"karma-mocha": "^0.2.1",
49-
"karma-sourcemap-loader": "^0.3.7",
50-
"karma-spec-reporter": "0.0.26",
51-
"karma-webpack": "^1.7.0",
5245
"mocha": "^2.3.4",
5346
"ncp": "^2.0.0",
5447
"pre-commit": "^1.1.2",

0 commit comments

Comments
 (0)