Omit old files.

This commit is contained in:
Thaddee Tyl
2014-02-19 13:46:27 +01:00
parent c1bec6b554
commit b0a16af913
18 changed files with 2 additions and 123 deletions

View File

@@ -1,5 +1,4 @@
all:
node make
all: website deploy
favicon:
node gh-badge.js '' '' '#bada55' .png > web/favicon.png
@@ -11,7 +10,7 @@ website:
git push origin gh-pages:gh-pages) || git checkout master
git checkout master
deploy: website
deploy:
git add Verdana.ttf
git commit -m'MUST NOT BE ON GITHUB'
git push -f heroku HEAD:master

View File

@@ -1,58 +0,0 @@
{
"build-passed": {
"text": [ "build", "passed" ],
"colorscheme": "brightgreen"
},
"build-passing": {
"text": [ "build", "passing" ],
"colorscheme": "brightgreen"
},
"build-pending": {
"text": [ "build", "pending" ],
"colorscheme": "yellow"
},
"build-failing": {
"text": [ "build", "failing" ],
"colorscheme": "red"
},
"build-unknown": {
"text": [ "build", "unknown" ],
"colorscheme": "lightgrey"
},
"build-error": {
"text": [ "build", "error" ],
"colorscheme": "lightgrey"
},
"dependencies-none": {
"text": [ "dependencies", "none" ],
"colorscheme": "green"
},
"dependencies-up-to-date": {
"text": [ "dependencies", "up-to-date" ],
"colorscheme": "green"
},
"dependencies-out-of-date": {
"text": [ "dependencies", "out of date" ],
"colorscheme": "yellow"
},
"dependencies-update": {
"text": [ "dependencies", "update!" ],
"colorscheme": "red"
},
"dependencies-unknown": {
"text": [ "dependencies", "unknown" ],
"colorscheme": "lightgrey"
},
"tips-per-week": {
"text": [ "tips", "$21/week" ],
"colorB": "#94c600"
},
"coverage": {
"text": [ "coverage", "73%" ],
"colorscheme": "red"
},
"download": {
"text": [ "download", "3.4K" ],
"colorscheme": "blue"
}
}

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="76" height="18" fill="#555"/><rect rx="4" x="37" width="39" height="18" fill="#9f9f9f"/><path fill="#9f9f9f" d="M37 0h4v18h-4z"/><rect rx="4" width="76" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="55.5" y="13" fill="#010101" fill-opacity=".3">error</text><text x="55.5" y="12">error</text></g></svg>

Before

Width:  |  Height:  |  Size: 818 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="81" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="81" height="18" fill="#555"/><rect rx="4" x="37" width="44" height="18" fill="#e05d44"/><path fill="#e05d44" d="M37 0h4v18h-4z"/><rect rx="4" width="81" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="58" y="13" fill="#010101" fill-opacity=".3">failing</text><text x="58" y="12">failing</text></g></svg>

Before

Width:  |  Height:  |  Size: 818 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="87" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="87" height="18" fill="#555"/><rect rx="4" x="37" width="50" height="18" fill="#4c1"/><path fill="#4c1" d="M37 0h4v18h-4z"/><rect rx="4" width="87" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="61" y="13" fill="#010101" fill-opacity=".3">passed</text><text x="61" y="12">passed</text></g></svg>

Before

Width:  |  Height:  |  Size: 810 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="90" height="18" fill="#555"/><rect rx="4" x="37" width="53" height="18" fill="#4c1"/><path fill="#4c1" d="M37 0h4v18h-4z"/><rect rx="4" width="90" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="62.5" y="13" fill="#010101" fill-opacity=".3">passing</text><text x="62.5" y="12">passing</text></g></svg>

Before

Width:  |  Height:  |  Size: 816 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="92" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="92" height="18" fill="#555"/><rect rx="4" x="37" width="55" height="18" fill="#dfb317"/><path fill="#dfb317" d="M37 0h4v18h-4z"/><rect rx="4" width="92" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="63.5" y="13" fill="#010101" fill-opacity=".3">pending</text><text x="63.5" y="12">pending</text></g></svg>

Before

Width:  |  Height:  |  Size: 822 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="98" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="98" height="18" fill="#555"/><rect rx="4" x="37" width="61" height="18" fill="#9f9f9f"/><path fill="#9f9f9f" d="M37 0h4v18h-4z"/><rect rx="4" width="98" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="12">build</text><text x="66.5" y="13" fill="#010101" fill-opacity=".3">unknown</text><text x="66.5" y="12">unknown</text></g></svg>

Before

Width:  |  Height:  |  Size: 822 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="99" height="18" fill="#555"/><rect rx="4" x="63" width="36" height="18" fill="#e05d44"/><path fill="#e05d44" d="M63 0h4v18h-4z"/><rect rx="4" width="99" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="32.5" y="13" fill="#010101" fill-opacity=".3">coverage</text><text x="32.5" y="12">coverage</text><text x="80" y="13" fill="#010101" fill-opacity=".3">73%</text><text x="80" y="12">73%</text></g></svg>

Before

Width:  |  Height:  |  Size: 816 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="126" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="126" height="18" fill="#555"/><rect rx="4" x="88" width="38" height="18" fill="#97CA00"/><path fill="#97CA00" d="M88 0h4v18h-4z"/><rect rx="4" width="126" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="45" y="13" fill="#010101" fill-opacity=".3">dependencies</text><text x="45" y="12">dependencies</text><text x="106" y="13" fill="#010101" fill-opacity=".3">none</text><text x="106" y="12">none</text></g></svg>

Before

Width:  |  Height:  |  Size: 827 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="160" height="18" fill="#555"/><rect rx="4" x="88" width="72" height="18" fill="#dfb317"/><path fill="#dfb317" d="M88 0h4v18h-4z"/><rect rx="4" width="160" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="45" y="13" fill="#010101" fill-opacity=".3">dependencies</text><text x="45" y="12">dependencies</text><text x="123" y="13" fill="#010101" fill-opacity=".3">out of date</text><text x="123" y="12">out of date</text></g></svg>

Before

Width:  |  Height:  |  Size: 841 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="149" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="149" height="18" fill="#555"/><rect rx="4" x="88" width="61" height="18" fill="#9f9f9f"/><path fill="#9f9f9f" d="M88 0h4v18h-4z"/><rect rx="4" width="149" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="45" y="13" fill="#010101" fill-opacity=".3">dependencies</text><text x="45" y="12">dependencies</text><text x="117.5" y="13" fill="#010101" fill-opacity=".3">unknown</text><text x="117.5" y="12">unknown</text></g></svg>

Before

Width:  |  Height:  |  Size: 837 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="158" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="158" height="18" fill="#555"/><rect rx="4" x="88" width="70" height="18" fill="#97CA00"/><path fill="#97CA00" d="M88 0h4v18h-4z"/><rect rx="4" width="158" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="45" y="13" fill="#010101" fill-opacity=".3">dependencies</text><text x="45" y="12">dependencies</text><text x="122" y="13" fill="#010101" fill-opacity=".3">up-to-date</text><text x="122" y="12">up-to-date</text></g></svg>

Before

Width:  |  Height:  |  Size: 839 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="141" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="141" height="18" fill="#555"/><rect rx="4" x="88" width="53" height="18" fill="#e05d44"/><path fill="#e05d44" d="M88 0h4v18h-4z"/><rect rx="4" width="141" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="45" y="13" fill="#010101" fill-opacity=".3">dependencies</text><text x="45" y="12">dependencies</text><text x="113.5" y="13" fill="#010101" fill-opacity=".3">update!</text><text x="113.5" y="12">update!</text></g></svg>

Before

Width:  |  Height:  |  Size: 837 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="100" height="18" fill="#555"/><rect rx="4" x="64" width="36" height="18" fill="#007ec6"/><path fill="#007ec6" d="M64 0h4v18h-4z"/><rect rx="4" width="100" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="33" y="13" fill="#010101" fill-opacity=".3">download</text><text x="33" y="12">download</text><text x="81" y="13" fill="#010101" fill-opacity=".3">3.4K</text><text x="81" y="12">3.4K</text></g></svg>

Before

Width:  |  Height:  |  Size: 817 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="18"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-opacity=".3"/><stop offset="1" stop-opacity=".5"/></linearGradient><rect rx="4" width="96" height="18" fill="#555"/><rect rx="4" x="30" width="66" height="18" fill="#94c600"/><path fill="#94c600" d="M30 0h4v18h-4z"/><rect rx="4" width="96" height="18" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="16" y="13" fill="#010101" fill-opacity=".3">tips</text><text x="16" y="12">tips</text><text x="62" y="13" fill="#010101" fill-opacity=".3">$21/week</text><text x="62" y="12">$21/week</text></g></svg>

Before

Width:  |  Height:  |  Size: 814 B

47
make.js
View File

@@ -1,47 +0,0 @@
var fs = require('fs');
var path = require('path');
var Promise = require('es6-promise').Promise;
// Fetch default badge information.
var badges = require('./default-badges.json');
var badge = require('./badge.js');
// Construct the image sheet.
var imageSheet = 'sheet.html';
var resultSheet = '';
// Where the images will be put.
var targetImgDir = 'img';
function makeImage(name, data, cb) {
badge(data, function(svg) {
var filename = path.join(targetImgDir, name + '.svg');
// Put this image on the sheet.
resultSheet += '<p><img src="' + filename + '">';
// Write the image individually.
fs.writeFile(filename, svg, cb);
});
}
// Return a promise to have all images written out individually.
function buildImages() {
return Promise.all(Object.keys(badges).map(function(name) {
//console.log('badge', name);
return new Promise(function(resolve) {
makeImage(name, badges[name], resolve);
});
}));
}
function main() {
// Write the images individually.
buildImages()
.then(function() {
// Write the sheet.
//console.log('sheet');
fs.writeFileSync(imageSheet, resultSheet);
})
.catch(function(e) { console.error(e.stack); });
}
main();

View File

@@ -1 +0,0 @@
<p><img src="img/build-passed.svg"><p><img src="img/build-passing.svg"><p><img src="img/build-pending.svg"><p><img src="img/build-failing.svg"><p><img src="img/build-unknown.svg"><p><img src="img/build-error.svg"><p><img src="img/dependencies-none.svg"><p><img src="img/dependencies-up-to-date.svg"><p><img src="img/dependencies-out-of-date.svg"><p><img src="img/dependencies-update.svg"><p><img src="img/dependencies-unknown.svg"><p><img src="img/tips-per-week.svg"><p><img src="img/coverage.svg"><p><img src="img/download.svg">