mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-27 14:05:27 +00:00
31 lines
900 B
JavaScript
31 lines
900 B
JavaScript
const Haml = require('haml');
|
|
|
|
module.exports = function (embark) {
|
|
embark.registerServiceCheck('PluginService', function (cb) {
|
|
cb({name: "ServiceName", status: "on"});
|
|
});
|
|
|
|
embark.registerPipeline((embark.pluginConfig.files || ['**/*.haml']), function (opts) {
|
|
return Haml.render(opts.source);
|
|
});
|
|
|
|
embark.registerContractConfiguration({
|
|
"default": {
|
|
"contracts": {
|
|
"PluginStorage": {
|
|
"args": ["$SimpleStorage"]
|
|
}
|
|
}
|
|
}
|
|
});
|
|
embark.addContractFile("./contracts/pluginSimpleStorage.sol");
|
|
|
|
embark.addFileToPipeline('./fileInPipeline.js');
|
|
embark.addFileToPipeline('./fileInPipeline.js', 'js/fileInPipeline.js');
|
|
|
|
embark.registerBeforeDeploy(function(options, callback) {
|
|
// Just calling register to prove it works. We don't actually want to change the contracts
|
|
callback({contractCode: options.contract.code});
|
|
});
|
|
};
|