Skip to content

Commit 2ce5a18

Browse files
committed
Host JSCS coverage
1 parent cac92be commit 2ce5a18

File tree

8 files changed

+57
-90
lines changed

8 files changed

+57
-90
lines changed

app/views/header/SocialButtonsView/style.styl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
display: block;
1717
border: 1px #D4D4D4 solid;
1818
border-radius: 3px;
19-
color: #333;
2019
text-shadow: 0 1px 0 #fff;
2120
font-size: 11px;
2221
font-weight: bold;
@@ -25,5 +24,12 @@
2524
padding: 1px 5px 0;
2625
line-height: 17px;
2726
background: #fafafa linear-gradient(#fafafa, #eaeaea);
27+
&, &:visited, &:visited:hover {
28+
color: #333;
29+
}
30+
&:hover {
31+
background: #ddd linear-gradient(#eee,#ddd);
32+
border-color: #ccc;
33+
}
2834
}
2935
}

app/views/pages/ContributingPageView/index.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import React from 'react';
22
import dataStore from '../../../stores/dataStore';
3+
import locationStore from '../../../stores/locationStore';
34
import PageView from '../../PageView';
5+
import './style.styl'
46

57
export default React.createClass({
68
render() {
79
return (
810
<PageView>
11+
<div className="contributing__links-wrap">
12+
See also:
13+
<ul className="contributing__links">
14+
<li>
15+
<a href={locationStore.renderPath('jscs', 'coverage')}>
16+
JSCS Test Coverage Report
17+
</a>
18+
</li>
19+
</ul>
20+
</div>
921
<div className="markdown"
1022
dangerouslySetInnerHTML={{__html: dataStore.getData().getContributingInfo()}}>
1123
</div>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.contributing {
2+
&__links-wrap {
3+
border: 1px solid #eee;
4+
background: #ffffff;
5+
float: right;
6+
position: relative;
7+
z-index: 1;
8+
padding: 10px 20px;
9+
color: #555;
10+
margin: 10px 0 10px 20px;
11+
font-size: 14px;
12+
}
13+
&__links {
14+
padding: 0;
15+
margin: 0;
16+
list-style-type: none;
17+
li:before {
18+
content: '— ';
19+
}
20+
}
21+
}

gulpfile.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"scripts": {
66
"data": "node app/buildData.js",
77
"test": "jscs app",
8-
"publish": "sh checkout.sh && npm run build && sh publish.sh",
9-
"start-dev": "sh checkout.sh && node app/server.js",
10-
"build": "rm -Rf result && mkdir result && cp -R app/resources/* result && npm run build-js && node app/buildPages",
8+
"publish": "sh tools/checkout.sh && npm run build && sh tools/publish.sh",
9+
"start-dev": "sh tools/checkout.sh && node app/server.js",
10+
"build": "sh tools/build.sh",
1111
"build-js": "webpack --config webpack-production.config.js --progress --profile --colors -p"
1212
},
1313
"author": "Marat Dulin <mdevils@yandex.ru>",

tools/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
rm -Rf result
4+
mkdir result
5+
mkdir result/jscs
6+
cp jscs/coverage.html result/jscs
7+
cp -R app/resources/* result
8+
9+
npm run build-js
10+
node app/buildPages

checkout.sh renamed to tools/checkout.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ if [ -d jscs ]; then
44
cd jscs && git fetch origin;
55
else
66
git clone git@github.com:jscs-dev/node-jscs.git jscs;
7+
cd jscs;
78
fi
8-
cd jscs;
9+
910
LAST_TAG_REV=`git rev-list --tags --max-count=1`;
1011
LAST_TAG=`git describe --tags "$LAST_TAG_REV"`;
1112
git checkout "$LAST_TAG";
1213

1314
npm install
1415

15-
#npm run browserify
16-
#cp jscs/jscs-browser.js result/assets/jscs-browser.js
16+
npm run browserify
17+
npm run coverage-html
File renamed without changes.

0 commit comments

Comments
 (0)