diff --git a/README.md b/README.md index 4ab0f7d4..7cee4c8a 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ This mirror has all the dependencies up-to-date. [![Version](https://img.shields.io/npm/v/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) [![License](https://img.shields.io/npm/l/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) -[![Build status](https://img.shields.io/travis/Alorel/shrink-ray/3.0.2.svg?style=flat-square)](https://travis-ci.org/Alorel/shrink-ray) -[![Coverage](https://img.shields.io/coveralls/github/Alorel/shrink-ray/3.0.2.svg?style=flat-square)](https://coveralls.io/github/Alorel/shrink-ray) +[![Build status](https://img.shields.io/travis/Alorel/shrink-ray/master.svg?style=flat-square)](https://travis-ci.org/Alorel/shrink-ray) +[![Coverage](https://img.shields.io/coveralls/github/Alorel/shrink-ray/master.svg?style=flat-square)](https://coveralls.io/github/Alorel/shrink-ray) [![Dependencies](https://img.shields.io/david/Alorel/shrink-ray.svg?style=flat-square)](https://github.com/Alorel/shrink-ray/blob/master/package.json) [![Dev Dependencies](https://img.shields.io/david/dev/Alorel/shrink-ray.svg?style=flat-square)](https://github.com/Alorel/shrink-ray/blob/master/package.json) [![Greenkeeper badge](https://badges.greenkeeper.io/Alorel/shrink-ray.svg)](https://greenkeeper.io/) diff --git a/package.json b/package.json index 29a7daae..eae2a550 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,6 @@ "scripts": { "reinstall": "rm -rf node_modules package-lock.json && npm install", "test": "nyc mocha --check-leaks --bail", - "version-readme": "node ./prepublish.js", "doctoc": "doctoc --github README.md" } } diff --git a/prepublish.js b/prepublish.js deleted file mode 100644 index 27b627ec..00000000 --- a/prepublish.js +++ /dev/null @@ -1,24 +0,0 @@ -const fs = require('fs'); -const {join} = require('path'); -const readmePath = join(__dirname, 'README.md'); -const version = require('./package.json').version; - -const replacements = { - 'https://img.shields.io/travis/Alorel/shrink-ray.svg': `https://img.shields.io/travis/Alorel/shrink-ray/${version}.svg`, - 'https://img.shields.io/coveralls/github/Alorel/shrink-ray.svg': `https://img.shields.io/coveralls/github/Alorel/shrink-ray/${version}.svg` -}; - -let readme = fs.readFileSync(readmePath, 'utf8'); - -Object.keys(replacements) - .map(find => { - return { - find: new RegExp(find, 'i'), - replace: replacements[find] - }; - }) - .forEach(r => { - readme = readme.replace(r.find, r.replace); - }); - -fs.writeFileSync(readmePath, readme);