Skip to content

Commit 65f75fb

Browse files
committed
Merge pull request #8 from jehon/master
Remove nightwatch and coffeelint depandancy at installation time (fix #7)
2 parents d432088 + dea7607 commit 65f75fb

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"description": "These are some commands and assertion I use when I'm testing with nightwatch.js and selenium.",
55
"main": "none",
66
"scripts": {
7-
"test": "./runTests.sh",
8-
"preinstall": "npm install -g gulp coffeelint nightwatch"
7+
"test": "./runTests.sh"
98
},
109
"repository": {
1110
"type": "git",
@@ -32,7 +31,9 @@
3231
"gulp-rename": "^1.2.0",
3332
"gulp-util": "^3.0.4",
3433
"mockserver-client": "^1.0.3",
35-
"selenium-server": "2.45.0"
34+
"selenium-server": "2.45.0",
35+
"coffeelint": "latest",
36+
"nightwatch": "latest"
3637
},
3738
"dependencies": {
3839
"easyimage": "^1.2.2"

runTests.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
#!/usr/bin/env bash
22

3+
if ! which coffeelint ; then
4+
echo "Coffeelint not installed globally. This is necessary for running tests"
5+
echo "npm install coffeelint -g"
6+
echo "Please note that nightwatch is also necessary globally"
7+
exit 1
8+
fi
9+
10+
if ! which nightwatch ; then
11+
echo "Nightwatch not installed globally. This is necessary for running tests"
12+
echo "npm install nightwatch -g"
13+
exit 1
14+
fi
15+
316
NIGHTWATCH_ENV=${NIGHTWATCH_ENV:-default}
417

518
#Lint the coffee files

0 commit comments

Comments
 (0)