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