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