Update robo file
[MAILPOET-938]
This commit is contained in:
@ -78,10 +78,6 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
return $this->_exec('./node_modules/webpack/bin/webpack.js --bail');
|
return $this->_exec('./node_modules/webpack/bin/webpack.js --bail');
|
||||||
}
|
}
|
||||||
|
|
||||||
function lintJavascript() {
|
|
||||||
return $this->_exec('npm run lint');
|
|
||||||
}
|
|
||||||
|
|
||||||
function compileCss() {
|
function compileCss() {
|
||||||
$css_files = array(
|
$css_files = array(
|
||||||
'assets/css/src/admin.styl',
|
'assets/css/src/admin.styl',
|
||||||
@ -193,6 +189,7 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$collection->addCode(function() {
|
$collection->addCode(function() {
|
||||||
return $this->qaCodeSniffer('all');
|
return $this->qaCodeSniffer('all');
|
||||||
});
|
});
|
||||||
|
$collection->addCode(array($this, 'qaLintJavascript'));
|
||||||
return $collection->run();
|
return $collection->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,6 +197,10 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
return $this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
return $this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function qaLintJavascript() {
|
||||||
|
return $this->_exec('npm run lint');
|
||||||
|
}
|
||||||
|
|
||||||
function qaCodeSniffer($severity='errors') {
|
function qaCodeSniffer($severity='errors') {
|
||||||
if ($severity === 'all') {
|
if ($severity === 'all') {
|
||||||
$severityFlag = '-w';
|
$severityFlag = '-w';
|
||||||
|
Reference in New Issue
Block a user