From feccd2651f84a68209e436d878833e86ad21c086 Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Fri, 31 Aug 2018 08:10:35 +0200 Subject: [PATCH] =?UTF-8?q?Add=20Lyo=20=F0=9F=8E=89=20github.com/bokub/lyo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + README.md | 42 +++++++++++++++++++++++++----------------- package.json | 7 +++++-- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index ef80cd3..a01b11d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.log node_modules/ package-lock.json +dist .nyc_output coverage.lcov diff --git a/README.md b/README.md index a7a55b4..fb2efcd 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # gradient-badges -[![npm][version]](https://www.npmjs.com/package/gradient-badges) -[![Demo][demo-src]][demo] -[![XO code style][xo]](https://github.com/sindresorhus/xo) -[![License][license]](https://github.com/bokub/gradient-badges/blob/master/LICENSE) +[![npm](https://runkit.io/bokub/gb-v/branches/master)](https://www.npmjs.com/package/gradient-badges) +[![Demo](https://runkit.io/bokub/badge/branches/master/demo/available/11998e-38ef7d)](https://git.io/gradient-badges) +[![XO code style](https://runkit.io/bokub/badge/branches/master/style/XO/ff94c8-cacfda-61eddb)](https://github.com/sindresorhus/xo) +[![License](https://runkit.io/bokub/badge/branches/master/license/MIT/ff426b-ffbc36)](https://github.com/bokub/gradient-badges/blob/master/LICENSE) -> 🍭 Badge generator with gradient support +> Badge generator with gradient support #### Check out the [demo][demo] to make your own badge @@ -19,6 +19,8 @@ $ npm i gradient-badges **gradient-badges** works exactly like [badgen](https://github.com/amio/badgen), with the **`gradient`** parameter in addition. +**Node.js** + ```javascript const badges = require('gradient-badges') @@ -30,6 +32,17 @@ const svgString = badges({ }) ``` +**Browser** +```html + + + +``` + Result: ![Result][usage] ## Examples @@ -55,18 +68,13 @@ Here are a few examples of what you can do. - [badgen](https://github.com/amio/badgen) - Fast handcraft svg badge generator. -[version]: https://runkit.io/bokub/gb-v/branches/master -[demo-src]: https://gradient-badges.now.sh/demo/available/11998e-38ef7d -[xo]: https://gradient-badges.now.sh/style/XO/ff94c8-cacfda-61eddb -[license]: https://gradient-badges.now.sh/license/MIT/ff426b-ffbc36 - -[usage]: https://gradient-badges.now.sh/version/v1.2.3/pink-F78642?style=flat +[usage]: https://runkit.io/bokub/badge/branches/master/version/v1.2.3/pink-F78642?style=flat [demo]: https://git.io/gradient-badges -[stars]: https://gradient-badges.now.sh/stars/★★★★☆/00a65e-abf269 -[standard]: https://gradient-badges.now.sh/code%20style/standard/ff22aa-bf00ff?style=flat -[patreon]: https://gradient-badges.now.sh/become/a%20patron/f96854-f9be75 -[instagram]: https://gradient-badges.now.sh/follow%20me/instagram/833ab4-fd1d1d-fcb045 -[vue]: https://gradient-badges.now.sh/built%20with/Vue.js/42b883-35495e?style=flat -[rainbow]: https://gradient-badges.now.sh/rainbow/compatible/00a3e2-1ba548-fdc800-f1860e-e41b13 \ No newline at end of file +[stars]: https://runkit.io/bokub/badge/branches/master/stars/★★★★☆/00a65e-abf269 +[standard]: https://runkit.io/bokub/badge/branches/master/code%20style/standard/ff22aa-bf00ff?style=flat +[patreon]: https://runkit.io/bokub/badge/branches/master/become/a%20patron/f96854-f9be75 +[instagram]: https://runkit.io/bokub/badge/branches/master/follow%20me/instagram/833ab4-fd1d1d-fcb045 +[vue]: https://runkit.io/bokub/badge/branches/master/built%20with/Vue.js/42b883-35495e?style=flat +[rainbow]: https://runkit.io/bokub/badge/branches/master/rainbow/compatible/00a3e2-1ba548-fdc800-f1860e-e41b13 \ No newline at end of file diff --git a/package.json b/package.json index fb1d239..150d895 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gradient-badges", - "version": "1.0.1", + "version": "1.1.0", "author": "Boris K", "dependencies": { "badgen": "^2.x" @@ -9,11 +9,13 @@ "ava": "^0.25.0", "codecov": "^3.0.4", "is-svg": "^3.0.0", + "lyo": "latest", "nyc": "^13.0.1", "xo": "^0.22.0" }, "files": [ - "index.js" + "index.js", + "dist/gradient-badges.min.js" ], "homepage": "https://github.com/bokub/gradient-badges", "keywords": [ @@ -33,6 +35,7 @@ "main": "index.js", "scripts": { "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", + "prepublishOnly": "lyo", "test": "xo && nyc ava -v" } }