forked from Lombiq/Gulp-Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lombiq.Gulp.Extensions.targets
31 lines (28 loc) · 1.28 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
30
31
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target
Name="EslintWarningTarget"
AfterTargets="NpmDotnetPrebuild"
BeforeTargets="BeforeBuild">
<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"
BeforeTargets="BeforeBuild">
<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>