Add simple test suite
This commit is contained in:
parent
118410a744
commit
f31dc6dd17
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
|||||||
|
# Node
|
||||||
|
node_modules/
|
||||||
|
npm-debug.log
|
||||||
|
|
||||||
# OS specific trash
|
# OS specific trash
|
||||||
.DS_Store
|
.DS_Store
|
||||||
._.DS_Store
|
._.DS_Store
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "A simple package providing the Roboto fontface.",
|
"description": "A simple package providing the Roboto fontface.",
|
||||||
"main": "css/roboto-fontface.css",
|
"main": "css/roboto-fontface.css",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "./test.sh"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -20,5 +20,9 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/choffmeister/roboto-fontface-bower/issues"
|
"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
12
test.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user