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

Commit 4c98706

Browse files
author
Peter Kim
committed
Merge pull request #6 from peterskim12/master
add build steps to README, simplify gulpfile
2 parents 7b23394 + 2655ce8 commit 4c98706

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.DS_Store
2+
node_modules
3+
.vagrant

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,15 @@ In order to keep things simple, there will be no concept of branching in this re
6262

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

65+
### Creating dists
66+
6567
These .zip and .tar.gz distributions can be generated using Gulp.
6668

69+
**Prerequisites**
70+
71+
- [node](http://nodejs.org/)
72+
73+
**Instructions**
74+
75+
1. npm install
76+
2. gulp

gulpfile.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ var gulp = require('gulp'),
77

88
var version = package.version;
99

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

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

2828
gulp.task('clean', function(cb) {
29-
del(['dist'], cb)
30-
});
31-
32-
gulp.task('clean-stage', function(cb) {
33-
del(['stage'], cb)
29+
del(['dist', 'stage'], cb)
3430
});
3531

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

0 commit comments

Comments
 (0)