Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
add build steps to README, simplify gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kim committed Jan 21, 2015
1 parent d80a627 commit 2655ce8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
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

0 comments on commit 2655ce8

Please sign in to comment.