Browse Source

cleanup build process

images
Michael Wuergler 7 years ago
parent
commit
3816443d8b
  1. 3
      build.js
  2. 2
      readme.md

3
build.js

@ -40,7 +40,8 @@ fetch(endpoint)
table += `\n<small><em>* Last updated: ${new Date().toUTCString()}</em></small>`;
const updated = template.replace(/<!-- BEGIN TABLE INJECT -->(\w|\W)*<!-- END TABLE INJECT -->/gim, `<!-- BEGIN TABLE INJECT -->\n${table}\n<!-- END TABLE INJECT -->`);
const target = /<!-- BEGIN TABLE INJECT -->(\w|\W)*<!-- END TABLE INJECT -->/gim;
const updated = template.replace(target, `<!-- BEGIN TABLE INJECT -->\n${table}\n<!-- END TABLE INJECT -->`);
fs.writeFileSync('readme.md', updated);
console.log('Readme Markdown Table updated');
})

2
readme.md

@ -1272,7 +1272,7 @@ There are currently **1238 cryptocurrencies** represented*:
| `VSL` | vSlice |
| `WBTC` | wBTC |
<small><em>* Last updated: Thu, 22 Jun 2017 13:48:19 GMT</em></small>
<small><em>* Last updated: Thu, 22 Jun 2017 14:21:18 GMT</em></small>
<!-- END TABLE INJECT -->
## Building

Loading…
Cancel
Save