This commit is contained in:
Iuri Matias 2017-02-06 21:08:11 -05:00
parent 3dcd82248f
commit fc2c6a41ee
3 changed files with 1 additions and 6 deletions

View File

@ -45,7 +45,6 @@ Compiler.prototype.compile_contracts = function(contractFiles) {
Compiler.prototype.compile_solidity = function(contractFiles) { Compiler.prototype.compile_solidity = function(contractFiles) {
var input = {}; var input = {};
// TODO: need to match only the .sol files
for (var i = 0; i < contractFiles.length; i++){ for (var i = 0; i < contractFiles.length; i++){
// TODO: this depends on the config // TODO: this depends on the config
var filename = contractFiles[i].filename.replace('app/contracts/',''); var filename = contractFiles[i].filename.replace('app/contracts/','');

View File

@ -22,7 +22,6 @@ Pipeline.prototype.build = function(abi) {
if (file.filename === 'embark.js') { if (file.filename === 'embark.js') {
return {content: file.content + "\n" + abi, filename: file.filename, path: file.path, modified: true}; return {content: file.content + "\n" + abi, filename: file.filename, path: file.path, modified: true};
} else if (['web3.js', 'ipfs.js', 'ipfs-api.js', 'orbit.js'].indexOf(file.filename) >= 0) { } else if (['web3.js', 'ipfs.js', 'ipfs-api.js', 'orbit.js'].indexOf(file.filename) >= 0) {
//return file.content;
file.modified = true; file.modified = true;
return file; return file;
} else { } else {
@ -42,7 +41,6 @@ Pipeline.prototype.build = function(abi) {
}); });
} }
//return file.content;
return file; return file;
} }
}); });

View File

@ -144,10 +144,8 @@ Plugin.prototype.runFilePipeline = function() {
}; };
Plugin.prototype.runPipeline = function(args) { Plugin.prototype.runPipeline = function(args) {
// TODO: should iterate the pipeliens // TODO: should iterate the pipelines
var pipeline = this.pipeline[0]; var pipeline = this.pipeline[0];
//var shouldRunPipeline = pipeline.matcthingFiles.some(match => {
//});
var shouldRunPipeline = grunt.file.isMatch(pipeline.matcthingFiles, args.targetFile); var shouldRunPipeline = grunt.file.isMatch(pipeline.matcthingFiles, args.targetFile);
if (shouldRunPipeline) { if (shouldRunPipeline) {
return pipeline.cb.call(this, args); return pipeline.cb.call(this, args);