-
Notifications
You must be signed in to change notification settings - Fork 3
/
Lombiq.Gulp.Extensions.targets
29 lines (26 loc) · 1.21 KB
/
Lombiq.Gulp.Extensions.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target
Name="EslintWarningTarget"
AfterTargets="NpmDotnetPrebuild">
<Warning
Code="ESL01"
Text="ESLint error in Gulp process, check the build output for more information."
Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(PrebuildOutput)', 'severity: error'))" />
<Warning
Code="ESL02"
Text="ESLint warning in Gulp process, check the build output for more information."
Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(PrebuildOutput)', 'severity: warning'))" />
</Target>
<Target
Name="StylelintWarningTarget"
AfterTargets="NpmDotnetPrebuild">
<Warning
Code="SL01"
Text="Stylelint error in Gulp process, check the build output for more information."
Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(PrebuildOutput)', 'severity level "error"'))" />
<Warning
Code="SL02"
Text="Stylelint warning in Gulp process, check the build output for more information."
Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(PrebuildOutput)', 'severity level "warning"'))" />
</Target>
</Project>