Skip to content

Commit

Permalink
Added xlsx in package.json and in JsCoverageApp. Added a line in webp…
Browse files Browse the repository at this point in the history
…ack.config to avoid fs problem : pugjs/pug-loader#8
  • Loading branch information
remimarenco committed Apr 29, 2015
1 parent b470684 commit b539c09
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"mainOutput": "main",
"dependencies": {
"react-router": "^0.13.2",
"react": "~0.13.1"
"react": "~0.13.1",
"collections": "~1.2.2",
"xlsx": "~0.8.0"
},
"devDependencies": {
"grunt": "~0.4.5",
Expand All @@ -38,7 +40,6 @@
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-clean": "~0.6.0",
"less-loader": "^2.0.0",
"react-hot-loader": "^1.0.7",
"collections": "~1.2.2"
"react-hot-loader": "^1.0.7"
}
}
14 changes: 10 additions & 4 deletions src/scripts/components/JsCoverageQcApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require('../../styles/main.css');
var Amplicon = require('../models/Amplicon');
var Bin = require('../models/Bin');
var Vcf = require('../models/Vcf');
var XLSX = require('xlsx');

var imageURL = require('../../images/yeoman.png');

Expand All @@ -36,10 +37,15 @@ function generateReport(parameters){
variantText = getResponseText(variantFileUrl);
variantFileLineCount = variantText.split("\n").length;
*/
debugger;
var vcf = new Vcf("", parameters.vcfFile.result, "", parameters.exonFile.result,
"", parameters.ampliconFile.result, "", parameters.variantTsv.result.split("\n").length);
console.log(vcf);
//debugger;
//var vcf = new Vcf("", parameters.vcfFile.result, "", parameters.exonFile.result,
// "", parameters.ampliconFile.result, "", parameters.variantTsv.result.split("\n").length);
//console.log(vcf);

var workbookcopy;
if(parameters.variantTsv !== null || typeof parameters.variantTsv !== 'undefined'){
//XLSX.write(workbookcopy, 'TSV copy');
}
}

var InputFile = React.createClass({
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ module.exports = {
loader: 'url-loader?limit=8192'
}]
},
node{
fs: "empty"
},

plugins: [
new webpack.HotModuleReplacementPlugin(),
Expand Down

0 comments on commit b539c09

Please sign in to comment.