bigbrother-webpack-plugin
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,10 +0,10 @@ | ||
export declare type TYPE_TOOL = { | ||
export interface ITYPETOOL { | ||
name: string; | ||
version: string; | ||
[key: string]: any; | ||
}; | ||
} | ||
export interface IOptions { | ||
cwd: string; | ||
tool: TYPE_TOOL; | ||
tool: ITYPETOOL; | ||
buildConfig?: object; | ||
} |
@@ -30,4 +30,3 @@ "use strict"; | ||
function BigBrotherClient(options) { | ||
this.options = options; | ||
assert(this.options, 'options is required'); | ||
assert(options, 'options is required'); | ||
this.cwd = options.cwd; | ||
@@ -40,6 +39,6 @@ assert(this.cwd, 'options.cwd is required'); | ||
BigBrotherClient.prototype.apply = function (compiler) { | ||
var _ = this; | ||
var _this = this; | ||
if (compiler.hooks) { | ||
compiler.hooks.done.tap('monitor', function (stats) { | ||
_.getReportData(stats); | ||
_this.getReportData(stats); | ||
}); | ||
@@ -50,3 +49,3 @@ return; | ||
compiler.plugin('done', function (stats) { | ||
_.getReportData(stats); | ||
_this.getReportData(stats); | ||
}); | ||
@@ -66,3 +65,6 @@ }; | ||
var name = _a.name, message = _a.message; | ||
return ({ name: name, message: message ? message(0, 200) : '' }); | ||
return ({ | ||
name: name, | ||
message: message ? message(0, 200) : '', | ||
}); | ||
}), | ||
@@ -69,0 +71,0 @@ }; |
{ | ||
"name": "bigbrother-webpack-plugin", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "bigbrother client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
3573
4
87