From 01bc7bad3775fdbf382ab79062f7a86a5a503622 Mon Sep 17 00:00:00 2001 From: szydan Date: Thu, 23 Feb 2017 12:15:59 +0100 Subject: [PATCH] reduced dependecies, added root kibana folder when creating an archive --- gulpfile.js | 8 +++----- package.json | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d1d74fa..1ed8e9f 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,8 +6,7 @@ var Rsync = require('rsync'); var Promise = require('bluebird'); var eslint = require('gulp-eslint'); var rimraf = require('rimraf'); -var tar = require('gulp-tar'); -var gzip = require('gulp-gzip'); +var zip = require('gulp-zip'); var fs = require('fs'); var spawn = require('child_process').spawn; var minimist = require('minimist'); @@ -17,7 +16,7 @@ var packageName = pkg.name + '-' + pkg.version; var buildDir = path.resolve(__dirname, 'build'); var targetDir = path.resolve(__dirname, 'target'); -var buildTarget = path.resolve(buildDir, pkg.name); +var buildTarget = path.resolve(buildDir, 'kibana', pkg.name); var include = [ 'package.json', @@ -108,8 +107,7 @@ gulp.task('build', ['clean'], function (done) { gulp.task('package', ['build'], function (done) { return gulp.src(path.join(buildDir, '**', '*')) - .pipe(tar(packageName + '.tar')) - .pipe(gzip()) + .pipe(zip(packageName + '.zip')) .pipe(gulp.dest(targetDir)); }); diff --git a/package.json b/package.json index f047804..566a3b2 100755 --- a/package.json +++ b/package.json @@ -29,8 +29,7 @@ "eslint": "^1.10.3", "gulp": "3.9.1", "gulp-eslint": "^1.1.1", - "gulp-gzip": "^1.2.0", - "gulp-tar": "^1.6.0", + "gulp-zip": "3.1.0", "gulp-util": "^3.0.7", "husky": "^0.10.2", "lodash": "^3.10.1",