mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Adressed @romainneutron's comments
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
"bower-canary": "latest",
|
"bower-canary": "latest",
|
||||||
"mocha-phantomjs": ">=2.0 <3.0",
|
"mocha-phantomjs": ">=2.0 <3.0",
|
||||||
"recess": ">=1.1.0 <1.1.7",
|
"recess": ">=1.1.0 <1.1.7",
|
||||||
"uglify-js": "latest"
|
"uglify-js": "latest",
|
||||||
|
"phantomjs": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,15 +5,11 @@ ROOTDIR="$BASEDIR/../.."
|
|||||||
PHANTOMJS_BIN=""
|
PHANTOMJS_BIN=""
|
||||||
MOCHA_PHANTOMJS_BIN=""
|
MOCHA_PHANTOMJS_BIN=""
|
||||||
|
|
||||||
if type "phantomjs" > /dev/null; then
|
if type "$ROOTDIR/node_modules/.bin/phantomjs" > /dev/null; then
|
||||||
PHANTOMJS_BIN="phantomjs"
|
|
||||||
elif type "$ROOTDIR/node_modules/.bin/phantomjs" > /dev/null; then
|
|
||||||
PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/phantomjs"
|
PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/phantomjs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type "mocha-phantomjs" > /dev/null; then
|
if type "$ROOTDIR/node_modules/.bin/mocha-phantomjs" > /dev/null; then
|
||||||
MOCHA_PHANTOMJS_BIN="mocha-phantomjs"
|
|
||||||
elif type "$ROOTDIR/node_modules/.bin/mocha-phantomjs" > /dev/null; then
|
|
||||||
MOCHA_PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/mocha-phantomjs"
|
MOCHA_PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/mocha-phantomjs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user