Skip to content

Commit 360562c

Browse files
committed
Remove stylelint less component task.
This has been removed in core in MDL-64506 (3.7).
1 parent f722b93 commit 360562c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Command/GruntCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
{
3434
parent::configure();
3535

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

3838
$this->setName('grunt')
3939
->setDescription('Run Grunt task on a plugin')
@@ -196,8 +196,6 @@ public function toGruntTask(string $task): ?GruntTaskModel
196196
return new GruntTaskModel($task, $this->moodle->directory);
197197
case 'stylelint:css':
198198
return $this->plugin->hasFilesWithName('*.css') ? $defaultTaskPluginDir : null;
199-
case 'stylelint:less':
200-
return $this->plugin->hasFilesWithName('*.less') ? $defaultTaskPluginDir : null;
201199
case 'stylelint:scss':
202200
return $this->plugin->hasFilesWithName('*.scss') ? $defaultTaskPluginDir : null;
203201
default:

tests/Command/GruntCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public function testToGruntTaskWithStyles()
145145
$this->fs->remove($this->pluginDir . '/styles.css');
146146

147147
$this->assertNull($command->toGruntTask('stylelint:css'));
148-
$this->assertNull($command->toGruntTask('stylelint:less'));
149148
$this->assertNull($command->toGruntTask('stylelint:scss'));
150149
}
151150

0 commit comments

Comments
 (0)