From e3b3e65409792fca1a6319abf7cf552572e5869b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 6 Oct 2017 21:04:00 -0700 Subject: [PATCH] ESLint and Stylelint during build --- build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.sh b/build.sh index 0bf2e1966..5d59a8f0a 100755 --- a/build.sh +++ b/build.sh @@ -76,6 +76,17 @@ BuildWithXbuild() CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile } +LintUI() +{ + ProgressStart 'ESLint' + CheckExitCode yarn eslint + ProgressEnd 'ESLint' + + ProgressStart 'Stylelint' + CheckExitCode yarn stylelint + ProgressEnd 'Stylelint' +} + Build() { ProgressStart 'Build' @@ -102,6 +113,8 @@ RunGulp() yarn install ProgressEnd 'yarn install' + LintUI + ProgressStart 'Running gulp' CheckExitCode yarn run build --production ProgressEnd 'Running gulp'