remove update task, use bower to install elasticsearch.js

This commit is contained in:
Spencer Alger 2014-06-19 10:30:37 -07:00
parent 6aabf15467
commit 46a2a608f3
3 changed files with 2 additions and 25 deletions

View file

@ -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' +

View file

@ -41,7 +41,8 @@
"angular-ui-ace": "bower",
"angular-elastic": "~2.3.3",
"inflection": "~1.3.5",
"FileSaver": "*"
"FileSaver": "*",
"elasticsearch": "~2.2.0"
},
"devDependencies": {}
}

View file

@ -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());
});
};