Skip to content

Commit a821e2f

Browse files
committed
fixed logging for cyclejs v7, added a copy script, updated results
1 parent 3b380ae commit a821e2f

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

copy.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var _ = require('lodash');
2+
var exec = require('child_process').execSync;
3+
var fs = require('fs-extra');
4+
var path = require('path');
5+
6+
if (fs.existsSync("dist")) fs.removeSync("dist");
7+
fs.mkdirSync("dist");
8+
fs.mkdirSync("dist"+path.sep+"webdriver-java");
9+
fs.copySync("webdriver-java"+path.sep+"table.html", "dist"+path.sep+"webdriver-java"+path.sep+"table.html");
10+
11+
fs.copySync("index.html", "dist"+path.sep+"index.html");
12+
fs.copySync("css", "dist"+path.sep+"css");
13+
14+
_.each(fs.readdirSync('.'), function(name) {
15+
if(fs.statSync(name).isDirectory() && name[0] !== '.' && name !== 'css' && name !== 'node_modules' && name !== 'webdriver-java' && name !== 'dist') {
16+
console.log("dist"+path.sep+name);
17+
fs.mkdirSync("dist"+path.sep+name);
18+
fs.mkdirSync("dist"+path.sep+name+path.sep+"dist");
19+
fs.copySync(name+path.sep+"dist", "dist"+path.sep+name+path.sep+"dist");
20+
if (fs.existsSync(name+path.sep+"index.html")) {
21+
fs.copySync(name+path.sep+"index.html", "dist"+path.sep+name+path.sep+"index.html");
22+
}
23+
}
24+
});
25+

cyclejs-v7.0.0/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ function view(state$) {
121121
<table className='table table-hover table-striped test-data'>
122122
<tbody>
123123
{
124-
console.log(state),
125124
state.items.map(item =>
126125
<tr id={item.id} className={state.selected === item.id ? 'danger' : ''}>
127126
<td className='col-md-1'>{item.id}</td>
@@ -137,6 +136,7 @@ function view(state$) {
137136
}
138137
</tbody>
139138
</table>
139+
<span className="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
140140
</div>
141141
);
142142
}

package.json

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"license": "ISC",
2626
"homepage": "https://github.com/krausest/js-framework-benchmark",
2727
"dependencies": {
28+
"fs-extra": "^0.30.0",
2829
"http-server": "^0.9.0",
2930
"lodash": "^4.0.0"
3031
}

webdriver-java/table.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)