1
0
mirror of https://github.com/jdan/98.css.git synced 2025-01-17 12:48:32 +01:00

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

View File

@ -7,7 +7,7 @@
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "./test.sh",
"build": "./build.js"
},
"repository": {

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