flow-status-webpack-plugin
Advanced tools
Comparing version 0.1.3 to 0.1.4
19
index.js
@@ -1,2 +0,2 @@ | ||
const colors = require('colors'), | ||
var colors = require('colors'), | ||
shell = require('shelljs'); | ||
@@ -9,7 +9,6 @@ | ||
FlowStatusWebpackPlugin.prototype.apply = function(compiler) { | ||
const options = this.options, | ||
var options = this.options, | ||
flowArgs = options.flowArgs || '', | ||
flow = options.binaryPath || 'flow'; | ||
var firstRun = true, | ||
flow = options.binaryPath || 'flow', | ||
firstRun = true, | ||
waitingForFlow = false; | ||
@@ -19,6 +18,6 @@ | ||
if (options.restartFlow === false) { | ||
shell.exec(flow + ' start ' + flowArgs, () => cb()); | ||
shell.exec(flow + ' start ' + flowArgs, cb); | ||
} else { | ||
shell.exec(flow + ' stop', () => { | ||
shell.exec(flow + ' start ' + flowArgs, () => cb()); | ||
shell.exec(flow + ' stop', function() { | ||
shell.exec(flow + ' start ' + flowArgs, cb); | ||
}); | ||
@@ -48,4 +47,4 @@ } | ||
// this will start a flow server if it was not running | ||
shell.exec(flow + ' status --color always', {silent: true}, (code, stdout, stderr) => { | ||
const hasErrors = code !== 0; | ||
shell.exec(flow + ' status --color always', {silent: true}, function(code, stdout, stderr) { | ||
var hasErrors = code !== 0; | ||
@@ -52,0 +51,0 @@ if (hasErrors) { |
{ | ||
"name": "flow-status-webpack-plugin", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Diego Durli <dgodurli@gmail> (https://github.com/diegodurli)", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6559