Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
reduced dependecies, added root kibana folder when creating an archive
Browse files Browse the repository at this point in the history
  • Loading branch information
szydan committed Feb 23, 2017
1 parent 513b741 commit d44170d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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',
Expand Down Expand Up @@ -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));
});

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d44170d

Please sign in to comment.