From 00fafe60d3cdc0a010c460331c330159936e669d Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Mon, 7 Jan 2019 10:30:26 +0200 Subject: [PATCH] Apply common project tweaks (round 2) (#83) * Add dependency-check * Add Donate section and badges to README.md * Run hallmark * Tweak badges and links in README.md --- CONTRIBUTORS.md | 2 +- README.md | 25 +++++++++++++++++++------ package.json | 5 ++++- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c1051c4..7d39a4c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -4,8 +4,8 @@ | :------------------- | :----------------------------------------------------- | :-------------------------------------------------------------- | | **Lars-Magnus Skog** | [**@ralphtheninja**](https://github.com/ralphtheninja) | [**@ralph@social.weho.st**](https://social.weho.st/@ralph) | | **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) | -| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | | **Rod Vagg** | [**@rvagg**](https://github.com/rvagg) | [**@rvagg@twitter**](https://twitter.com/rvagg) | +| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | | **Matteo Collina** | [**@mcollina**](https://github.com/mcollina) | [**@matteocollina@twitter**](https://twitter.com/matteocollina) | | **Deian Stefan** | [**@deian**](https://github.com/deian) | | | **Andrew Kelley** | [**@andrewrk**](https://github.com/andrewrk) | | diff --git a/README.md b/README.md index 3f73020..502adb2 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,15 @@ > `levelup` package helper for distributing with an `abstract-leveldown` compatible back-end -[![level badge][level-badge]](https://github.com/level/awesome) -[![npm](https://img.shields.io/npm/v/level-packager.svg)](https://www.npmjs.com/package/level-packager) -![Node version](https://img.shields.io/node/v/level-packager.svg) -[![Build Status](https://secure.travis-ci.org/Level/packager.png)](http://travis-ci.org/Level/packager) -[![dependencies](https://david-dm.org/Level/packager.svg)](https://david-dm.org/level/packager) +[![level badge][level-badge]](https://github.com/Level/awesome) +[![npm](https://img.shields.io/npm/v/level-packager.svg?label=&logo=npm)](https://www.npmjs.com/package/level-packager) +[![Node version](https://img.shields.io/node/v/level-packager.svg)](https://www.npmjs.com/package/level-packager) +[![Travis](https://img.shields.io/travis/Level/packager.svg?logo=travis&label=)](https://travis-ci.org/Level/packager) [![Coverage Status](https://coveralls.io/repos/github/Level/packager/badge.svg)](https://coveralls.io/github/Level/packager) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) -[![npm](https://img.shields.io/npm/dm/level-packager.svg)](https://www.npmjs.com/package/level-packager) +[![npm](https://img.shields.io/npm/dm/level-packager.svg?label=dl)](https://www.npmjs.com/package/level-packager) +[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers) +[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors) ## API @@ -36,6 +37,18 @@ Also available is a _test.js_ file that can be used to verify that the user-pack See the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details. +## Donate + +To sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level), [npm](https://www.npmjs.com/) packages and (soon) [our website](http://leveldb.org). 💖 + +### Backers + +[![Open Collective backers](https://opencollective.com/level/backers.svg?width=890)](https://opencollective.com/level) + +### Sponsors + +[![Open Collective sponsors](https://opencollective.com/level/sponsors.svg?width=890)](https://opencollective.com/level) + ## License [MIT](LICENSE.md) © 2013-present [Contributors](CONTRIBUTORS.md). diff --git a/package.json b/package.json index 4b30778..a516bcb 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "scripts": { "test": "standard && hallmark && nyc node test.js", "coverage": "nyc report --reporter=text-lcov | coveralls", - "hallmark": "hallmark --fix" + "hallmark": "hallmark --fix", + "dependency-check": "dependency-check . test.js abstract/*.js", + "prepublishOnly": "npm run dependency-check" }, "dependencies": { "encoding-down": "^6.0.0", @@ -15,6 +17,7 @@ }, "devDependencies": { "coveralls": "^3.0.2", + "dependency-check": "^3.3.0", "hallmark": "^0.1.0", "level-community": "^3.0.0", "nyc": "^12.0.2",