diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 94581de5..00000000 --- a/.npmignore +++ /dev/null @@ -1,30 +0,0 @@ -# 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 -docs \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..4e54a69e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +language: node_js +cache: npm +stages: + - check + - test + - cov + +node_js: + - '10' + +os: + - linux + - osx + +script: npx nyc -s npm run test:node -- --bail +after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov + +jobs: + include: + - os: windows + filter_secrets: false + cache: false + + - stage: check + script: + - npx aegir commitlint --travis + - npx aegir dep-check + - npm run lint + + - stage: test + name: chrome + addons: + chrome: stable + script: npx aegir test -t browser -t webworker + + - stage: test + name: firefox + addons: + firefox: latest + script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless + +notifications: + email: false diff --git a/README.md b/README.md index 6ba60933..52ad6a21 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs) [![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihashing-async/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihashing-async?branch=master) +[![Travis CI](https://flat.badgen.net/travis/ipfs/js-multihashing-async)](https://travis-ci.com/ipfs/js-multihashing-async) [![Dependency Status](https://david-dm.org/multiformats/js-multihashing-async.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihashing-async) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile deleted file mode 100644 index a7da2e54..00000000 --- a/ci/Jenkinsfile +++ /dev/null @@ -1,2 +0,0 @@ -// Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. -javascript() diff --git a/package.json b/package.json index ff8efd87..a6aca8d2 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,22 @@ "name": "multihashing-async", "version": "0.5.2", "description": "multiple hash functions", + "keywords": [ + "multihash" + ], + "homepage": "https://github.com/multiformats/js-multihashing-async", + "bugs": "https://github.com/multiformats/js-multihashing-async/issues", + "license": "MIT", "leadMaintainer": "Hugo Dias ", + "files": [ + "src", + "dist" + ], "main": "src/index.js", "browser": { "./src/crypto-sha1-2.js": "./src/crypto-sha1-2-browser.js" }, + "repository": "github:multiformats/js-multihashing-async", "scripts": { "test": "aegir test", "test:browser": "aegir test -t browser", @@ -17,25 +28,8 @@ "release-minor": "aegir release --type minor --docs", "release-major": "aegir release --type major --docs", "build": "aegir build", - "coverage": "aegir coverage", - "coverage-publish": "aegir coverage publish", "bench": "node benchmarks/hash.js" }, - "pre-push": [ - "lint", - "test" - ], - "repository": { - "type": "git", - "url": "git://github.com/multiformats/js-multihashing-async.git" - }, - "keywords": [ - "multihash" - ], - "license": "MIT", - "bugs": { - "url": "https://github.com/multiformats/js-multihashing-async/issues" - }, "dependencies": { "blakejs": "^1.1.0", "js-sha3": "~0.8.0", @@ -53,7 +47,6 @@ "node": ">=6.0.0", "npm": ">=3.0.0" }, - "homepage": "https://github.com/multiformats/js-multihashing-async", "contributors": [ "André Cruz ", "David Dias ",