add basic test
This commit is contained in:
parent
5509453e21
commit
645a647893
2 changed files with 13 additions and 1 deletions
|
|
@ -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
12
test.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue