Add simple test suite

This commit is contained in:
Christian Hoffmeister 2016-02-27 13:53:26 +01:00
parent 118410a744
commit f31dc6dd17
3 changed files with 22 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
# Node
node_modules/
npm-debug.log
# OS specific trash
.DS_Store
._.DS_Store

View File

@ -4,7 +4,7 @@
"description": "A simple package providing the Roboto fontface.",
"main": "css/roboto-fontface.css",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "./test.sh"
},
"repository": {
"type": "git",
@ -20,5 +20,9 @@
"bugs": {
"url": "https://github.com/choffmeister/roboto-fontface-bower/issues"
},
"homepage": "https://github.com/choffmeister/roboto-fontface-bower"
"homepage": "https://github.com/choffmeister/roboto-fontface-bower",
"devDependencies": {
"less": "2.6.0",
"node-sass": "3.4.2"
}
}

12
test.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
for FILE in $DIR/css/*.less; do
echo "less $FILE"
lessc "$FILE" >/dev/null
done
for FILE in $DIR/css/*.scss; do
echo "sass $FILE"
node-sass "$FILE" >/dev/null
done