-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
executable file
·35 lines (30 loc) · 1 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var gulp = require('gulp');
var gutil = require('gulp-util');
var solr = require('./src/Solr-api.js');
var constants = require('./src/constants');
var clean = require('gulp-clean');
gulp.task('default', ['solrLoad'], function () {
gutil.log('gulp default task');
});
gulp.task('solrLoad', ['getData'], function () {
gutil.log('in the solrLoad task');
});
gulp.task('mongoLoad', ['getData'], function () {
gutil.log('in the mongoLoad task');
});
gulp.task('getData', function () {
gutil.log('in the get Data from the youtube task');
});
gulp.task('clearSolrData', function (cb) {
gutil.log('in the delete Data from the youtube task');
return solr.deleteSolrData()
.then()
.catch();
});
gulp.task('clearOldData', ['clearSolrData'], function () {
return gulp.src(constants.WORKING_DIR + '/*', { read: false })
.pipe(clean({ force: true }));
});
gulp.task('postDataToSolr', function () {
gutil.log('going to post data to solr');
});