Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
node_modules
.vagrant
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,15 @@ In order to keep things simple, there will be no concept of branching in this re

All releases (major and minor) of the demo repo should be made available in .zip and .tar.gz formats.

### Creating dists

These .zip and .tar.gz distributions can be generated using Gulp.

**Prerequisites**

- [node](http://nodejs.org/)

**Instructions**

1. npm install
2. gulp
10 changes: 3 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ var gulp = require('gulp'),

var version = package.version;

gulp.task('stage', ['clean-stage'], function(cb) {
return gulp.src(['**/*', '!node_modules/**'])
gulp.task('stage', ['clean'], function(cb) {
return gulp.src(['**/*', '!node_modules/**', '!node_modules'])
.pipe(gulp.dest('stage/elasticsearch-demo-' + version));
});

Expand All @@ -26,11 +26,7 @@ gulp.task('tar', [], function() {
});

gulp.task('clean', function(cb) {
del(['dist'], cb)
});

gulp.task('clean-stage', function(cb) {
del(['stage'], cb)
del(['dist', 'stage'], cb)
});

gulp.task('default', ['clean', 'stage'], function() {
Expand Down