mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[grunt] open the browser after build started
This commit is contained in:
parent
f48b3595b9
commit
60dde9ca22
3 changed files with 14 additions and 5 deletions
|
@ -22,6 +22,7 @@
|
|||
"grunt-mocha": "~0.4.10",
|
||||
"grunt-replace": "^0.7.9",
|
||||
"grunt-run": "^0.2.3",
|
||||
"grunt-s3": "~0.2.0-alpha.3",
|
||||
"grunt-saucelabs": "~8.3.2",
|
||||
"html-entities": "^1.1.1",
|
||||
"http-proxy": "~1.1.4",
|
||||
|
@ -34,13 +35,13 @@
|
|||
"mkdirp": "^0.5.0",
|
||||
"mocha": "~1.20.1",
|
||||
"mocha-screencast-reporter": "~0.1.4",
|
||||
"opn": "~1.0.0",
|
||||
"path-browserify": "0.0.0",
|
||||
"progress": "^1.1.8",
|
||||
"request": "^2.40.0",
|
||||
"requirejs": "~2.1.14",
|
||||
"rjs-build-analysis": "0.0.3",
|
||||
"tar": "^1.0.1",
|
||||
"grunt-s3": "~0.2.0-alpha.3"
|
||||
"tar": "^1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test --use-jruby",
|
||||
|
|
|
@ -30,8 +30,10 @@ module.exports = function (grunt) {
|
|||
},
|
||||
built_kibana: {
|
||||
options: {
|
||||
wait: true,
|
||||
quiet: false,
|
||||
wait: false,
|
||||
ready: /kibana server started/i,
|
||||
quiet: true,
|
||||
failOnError: false
|
||||
},
|
||||
cmd: './target/<%= pkg.name + "-" + pkg.version %>/bin/kibana'
|
||||
}
|
||||
|
|
|
@ -2,7 +2,9 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('run_build', [
|
||||
'build',
|
||||
'_extract_built',
|
||||
'run:built_kibana'
|
||||
'run:built_kibana',
|
||||
'_open_built_kibana',
|
||||
'wait:built_kibana'
|
||||
]);
|
||||
|
||||
var join = require('path').join;
|
||||
|
@ -15,4 +17,8 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('_extract_built', function () {
|
||||
extract().nodeify(this.async());
|
||||
});
|
||||
|
||||
grunt.registerTask('_open_built_kibana', function () {
|
||||
require('opn')('http://localhost:5601');
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue