Skip to content

Commit

Permalink
Remove stylelint less component task.
Browse files Browse the repository at this point in the history
This has been removed in core in MDL-64506 (3.7).
  • Loading branch information
kabalin committed Sep 10, 2024
1 parent f722b93 commit 360562c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/Command/GruntCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function configure(): void
{
parent::configure();

$tasks = ['amd', 'yui', 'gherkinlint', 'stylelint:css', 'stylelint:less', 'stylelint:scss'];
$tasks = ['amd', 'yui', 'gherkinlint', 'stylelint:css', 'stylelint:scss'];

$this->setName('grunt')
->setDescription('Run Grunt task on a plugin')
Expand Down Expand Up @@ -196,8 +196,6 @@ public function toGruntTask(string $task): ?GruntTaskModel
return new GruntTaskModel($task, $this->moodle->directory);
case 'stylelint:css':
return $this->plugin->hasFilesWithName('*.css') ? $defaultTaskPluginDir : null;
case 'stylelint:less':
return $this->plugin->hasFilesWithName('*.less') ? $defaultTaskPluginDir : null;
case 'stylelint:scss':
return $this->plugin->hasFilesWithName('*.scss') ? $defaultTaskPluginDir : null;
default:
Expand Down
1 change: 0 additions & 1 deletion tests/Command/GruntCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public function testToGruntTaskWithStyles()
$this->fs->remove($this->pluginDir . '/styles.css');

$this->assertNull($command->toGruntTask('stylelint:css'));
$this->assertNull($command->toGruntTask('stylelint:less'));
$this->assertNull($command->toGruntTask('stylelint:scss'));
}

Expand Down

0 comments on commit 360562c

Please sign in to comment.