Fix css linter

[MAILPOET-2949]
This commit is contained in:
Pavel Dohnal
2020-06-15 15:54:18 +02:00
committed by Veljko V
parent d366b2e8f3
commit 8c3153e205
3 changed files with 7 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ class RoboFile extends \Robo\Tasks {
// Clean up folder from previous files
array_map('unlink', glob("assets/dist/css/*.*"));
$this->_exec('npm run stylelint -- "assets/css/src/components/**/*.scss"');
$this->_exec('npm run stylelint -- "assets/css/src/**/*.scss"');
$this->_exec('npm run scss');
$compilationResult = $this->_exec('npm run autoprefixer');
@@ -350,7 +350,7 @@ class RoboFile extends \Robo\Tasks {
public function qa() {
$collection = $this->collectionBuilder();
$collection->addCode([$this, 'qaPhp']);
$collection->addCode([$this, 'qaJavascript']);
$collection->addCode([$this, 'qaFrontendAssets']);
return $collection->run();
}
@@ -363,7 +363,7 @@ class RoboFile extends \Robo\Tasks {
return $collection->run();
}
public function qaJavascript() {
public function qaFrontendAssets() {
$collection = $this->collectionBuilder();
$collection->addCode([$this, 'qaLintJavascript']);
$collection->addCode([$this, 'qaLintCss']);
@@ -379,7 +379,7 @@ class RoboFile extends \Robo\Tasks {
}
public function qaLintCss() {
return $this->_exec('npm run stylelint -- "assets/css/src/components/**/*.scss"');
return $this->_exec('npm run stylelint-check -- "assets/css/src/**/*.scss"');
}
public function qaCodeSniffer($severity='errors') {