2018-04-25 17:05:58 +00:00
|
|
|
const Haml = require('haml');
|
2018-02-28 22:45:39 +00:00
|
|
|
|
2018-04-25 17:05:58 +00:00
|
|
|
module.exports = function (embark) {
|
|
|
|
embark.registerServiceCheck('PluginService', function (cb) {
|
2017-04-02 03:22:43 +00:00
|
|
|
cb({name: "ServiceName", status: "on"});
|
2017-03-16 11:31:52 +00:00
|
|
|
});
|
2018-02-28 22:45:39 +00:00
|
|
|
|
2018-04-25 17:05:58 +00:00
|
|
|
embark.registerPipeline((embark.pluginConfig.files || ['**/*.haml']), function (opts) {
|
|
|
|
return Haml.render(opts.source);
|
2018-02-28 22:45:39 +00:00
|
|
|
});
|
2018-04-25 17:05:58 +00:00
|
|
|
|
|
|
|
embark.registerContractConfiguration({
|
|
|
|
"default": {
|
|
|
|
"contracts": {
|
|
|
|
"PluginStorage": {
|
|
|
|
"args": ["$SimpleStorage"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
embark.addContractFile("./contracts/pluginSimpleStorage.sol");
|
2017-03-16 11:31:52 +00:00
|
|
|
};
|