mirror of https://github.com/embarklabs/embark.git
add todo
This commit is contained in:
parent
b34ddf32cf
commit
231e48cecb
|
@ -32,6 +32,7 @@ var Config = function(options) {
|
|||
cb(self.contractsFiles);
|
||||
});
|
||||
|
||||
// TODO: refactor this so reading the file can be done with a normal resolver or something that takes advantage of the plugin api
|
||||
self.events.setCommandHandler("config:contractsFiles:add", (filename) => {
|
||||
self.contractsFiles.push(new File({filename: filename, type: File.types.custom, path: filename, resolver: function(callback) {
|
||||
callback(fs.readFileSync(filename).toString());
|
||||
|
|
Loading…
Reference in New Issue