mirror of https://github.com/embarklabs/embark.git
cleanup
This commit is contained in:
parent
3dcd82248f
commit
fc2c6a41ee
|
@ -45,7 +45,6 @@ Compiler.prototype.compile_contracts = function(contractFiles) {
|
|||
Compiler.prototype.compile_solidity = function(contractFiles) {
|
||||
var input = {};
|
||||
|
||||
// TODO: need to match only the .sol files
|
||||
for (var i = 0; i < contractFiles.length; i++){
|
||||
// TODO: this depends on the config
|
||||
var filename = contractFiles[i].filename.replace('app/contracts/','');
|
||||
|
|
|
@ -22,7 +22,6 @@ Pipeline.prototype.build = function(abi) {
|
|||
if (file.filename === 'embark.js') {
|
||||
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) {
|
||||
//return file.content;
|
||||
file.modified = true;
|
||||
return file;
|
||||
} else {
|
||||
|
@ -42,7 +41,6 @@ Pipeline.prototype.build = function(abi) {
|
|||
});
|
||||
}
|
||||
|
||||
//return file.content;
|
||||
return file;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -144,10 +144,8 @@ Plugin.prototype.runFilePipeline = function() {
|
|||
};
|
||||
|
||||
Plugin.prototype.runPipeline = function(args) {
|
||||
// TODO: should iterate the pipeliens
|
||||
// TODO: should iterate the pipelines
|
||||
var pipeline = this.pipeline[0];
|
||||
//var shouldRunPipeline = pipeline.matcthingFiles.some(match => {
|
||||
//});
|
||||
var shouldRunPipeline = grunt.file.isMatch(pipeline.matcthingFiles, args.targetFile);
|
||||
if (shouldRunPipeline) {
|
||||
return pipeline.cb.call(this, args);
|
||||
|
|
Loading…
Reference in New Issue