Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
cc21e3ef
Unverified
Commit
cc21e3ef
authored
Nov 20, 2019
by
Arve Knudsen
Committed by
GitHub
Nov 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Clean up scripts/grunt/options/phantomjs.js (#20503)
parent
d3d595a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
scripts/grunt/options/phantomjs.js
+4
-8
No files found.
scripts/grunt/options/phantomjs.js
View file @
cc21e3ef
...
...
@@ -2,7 +2,6 @@ module.exports = function(config,grunt) {
'use strict'
;
grunt
.
registerTask
(
'phantomjs'
,
'Copy phantomjs binary to vendor/'
,
function
()
{
var
dest
=
'./tools/phantomjs/phantomjs'
;
var
confDir
=
'./node_modules/phantomjs-prebuilt/lib/'
;
...
...
@@ -10,12 +9,10 @@ module.exports = function(config,grunt) {
dest
+=
".exe"
;
}
src
=
config
.
phjs
if
(
!
src
){
var
m
=
grunt
.
file
.
read
(
confDir
+
"location.js"
)
var
src
=
/=
\"([^\"]
*
)\"
/
.
exec
(
m
)[
1
];
var
src
=
config
.
phjs
;
if
(
!
src
)
{
var
m
=
grunt
.
file
.
read
(
confDir
+
"location.js"
);
src
=
/=
\"([^\"]
*
)\"
/
.
exec
(
m
)[
1
];
if
(
!
grunt
.
file
.
isPathAbsolute
(
src
))
{
src
=
confDir
+
src
;
}
...
...
@@ -32,6 +29,5 @@ module.exports = function(config,grunt) {
grunt
.
verbose
.
writeln
(
err
);
grunt
.
fail
.
warn
(
'No working Phantomjs binary available'
)
}
});
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment