mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
re-add register upload cmd api; refactor storage module initialization
This commit is contained in:
parent
bd13626d49
commit
a1e72e38ef
@ -22,6 +22,7 @@ var Plugin = function(options) {
|
||||
this.serviceChecks = [];
|
||||
this.dappGenerators = [];
|
||||
this.pluginTypes = [];
|
||||
this.uploadCmds = [];
|
||||
this.imports = [];
|
||||
this.embarkjs_code = [];
|
||||
this.embarkjs_init_code = {};
|
||||
@ -187,6 +188,11 @@ Plugin.prototype.registerCompiler = function(extension, cb) {
|
||||
this.addPluginType('compilers');
|
||||
};
|
||||
|
||||
Plugin.prototype.registerUploadCommand = function(cmd, cb) {
|
||||
this.uploadCmds.push({cmd: cmd, cb: cb});
|
||||
this.addPluginType('uploadCmds');
|
||||
};
|
||||
|
||||
Plugin.prototype.addCodeToEmbarkJS = function(code) {
|
||||
this.embarkjs_code.push(code);
|
||||
this.addPluginType('embarkjsCode');
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
class Storage {
|
||||
constructor(embark, options){
|
||||
constructor(embark, _options){
|
||||
this.embark = embark;
|
||||
this.storageConfig = embark.config.storageConfig;
|
||||
this.plugins = options.plugins;
|
||||
|
Loading…
x
Reference in New Issue
Block a user