mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
remove update task, use bower to install elasticsearch.js
This commit is contained in:
parent
6aabf15467
commit
46a2a608f3
3 changed files with 2 additions and 25 deletions
|
@ -16,9 +16,6 @@ module.exports = function (grunt) {
|
|||
testUtilsDir: __dirname + '/test/utils',
|
||||
bowerComponentsDir: __dirname + '/src/bower_components',
|
||||
|
||||
esjsRepo: 'git@github.com:elasticsearch/elasticsearch-js.git',
|
||||
esjsDir: '<%= bowerComponentsDir %>/elasticsearch',
|
||||
|
||||
meta: {
|
||||
banner: '/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
|
|
|
@ -41,7 +41,8 @@
|
|||
"angular-ui-ace": "bower",
|
||||
"angular-elastic": "~2.3.3",
|
||||
"inflection": "~1.3.5",
|
||||
"FileSaver": "*"
|
||||
"FileSaver": "*",
|
||||
"elasticsearch": "~2.2.0"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
module.exports = function (grunt) {
|
||||
var Promise = require('bluebird');
|
||||
var spawn = require('./utils/spawn');
|
||||
var installOrUpdateRepo = require('./utils/install_or_update_repo');
|
||||
|
||||
// bower update elasticsearch && npm run rebuild-esjs"
|
||||
grunt.registerTask('update', [
|
||||
'update-esjs',
|
||||
]);
|
||||
|
||||
// cd ./src/bower_components/elasticsearch && npm install && grunt browser_clients:build
|
||||
grunt.registerTask('update-esjs', function () {
|
||||
var esjsDir = grunt.config('esjsDir');
|
||||
|
||||
installOrUpdateRepo(grunt.config('esjsRepo'), esjsDir)
|
||||
.then(function (updated) {
|
||||
if (updated) return spawn('grunt', ['browser_clients:build'], esjsDir)();
|
||||
})
|
||||
.nodeify(this.async());
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue