mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
tech(): updated phantomjs npm package to use phantomjs-prebuilt
This commit is contained in:
parent
585503f9fb
commit
637db29fad
@ -48,10 +48,10 @@
|
||||
"karma-coveralls": "1.1.2",
|
||||
"karma-expect": "~1.1.0",
|
||||
"karma-mocha": "~0.2.1",
|
||||
"karma-phantomjs-launcher": "0.2.1",
|
||||
"karma-phantomjs-launcher": "1.0.0",
|
||||
"load-grunt-tasks": "3.4.0",
|
||||
"mocha": "2.3.4",
|
||||
"phantomjs": "^2.1.3",
|
||||
"phantomjs-prebuilt": "^2.1.3",
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.2",
|
||||
"sass-lint": "^1.5.0",
|
||||
|
@ -4,12 +4,7 @@ module.exports = function(config,grunt) {
|
||||
grunt.registerTask('phantomjs', 'Copy phantomjs binary from node', function() {
|
||||
|
||||
var dest = './vendor/phantomjs/phantomjs';
|
||||
var confDir = './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/'
|
||||
|
||||
if (!grunt.file.exists(confDir)) {
|
||||
// npm 3 or npm 2 with dedupe
|
||||
confDir = './node_modules/phantomjs/lib/';
|
||||
}
|
||||
var confDir = './node_modules/phantomjs-prebuilt/lib/';
|
||||
|
||||
if (!grunt.file.exists(dest)){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user