embark-solc/index.js

13 lines
327 B
JavaScript

/*global require, module*/
const Compiler = require("./lib/Compiler");
module.exports = (embark) => {
embark.registerCompiler('.sol', compileSolc);
function compileSolc(contractFiles, options, cb) {
if(!contractFiles || !contractFiles.length) {
return cb();
}
Compiler.compileSolc(embark, contractFiles, cb);
}
};