Add shared buidler / hardhat plugin entrypoint (#564)
parent
587a1f3e91
commit
0d74ff0b72
@ -1,13 +0,0 @@ |
||||
const plugin = require("./plugins/hardhat.plugin"); |
||||
const PluginUI = require('./plugins/resources/nomiclabs.ui'); |
||||
|
||||
// UI for the task flags...
|
||||
const ui = new PluginUI(); |
||||
|
||||
task("coverage", "Generates a code coverage report for tests") |
||||
.addOptionalParam("testfiles", ui.flags.file, "", types.string) |
||||
.addOptionalParam("solcoverjs", ui.flags.solcoverjs, "", types.string) |
||||
.addOptionalParam('temp', ui.flags.temp, "", types.string) |
||||
.setAction(async function(args, env){ |
||||
await plugin(args, env) |
||||
}); |
@ -0,0 +1,6 @@ |
||||
if (global && global.__hardhatContext){ |
||||
require("./hardhat.plugin"); |
||||
return; |
||||
} |
||||
|
||||
module.exports = require('./buidler.plugin') |
@ -1,5 +1,5 @@ |
||||
require("@nomiclabs/hardhat-truffle5"); |
||||
require(__dirname + "/../hardhat"); |
||||
require(__dirname + "/../plugins/nomiclabs.plugin"); |
||||
|
||||
module.exports={ |
||||
logger: process.env.SILENT ? { log: () => {} } : console, |
||||
|
Loading…
Reference in new issue