add basic test

This commit is contained in:
Jordan Scales 2020-04-21 22:27:18 -04:00
parent 5509453e21
commit 645a647893
2 changed files with 13 additions and 1 deletions

12
test.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
npm run build
output=$( git diff build )
if [ -z "$output" ]
then
break
else
echo "Build doesn't match, wanna run \`npm run build\`?"
exit 1;
fi