forked from jeena/FeedMonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
38 lines (34 loc) · 956 Bytes
/
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
36
37
38
var gulp = require('gulp');
var clean = require('gulp-clean');
var zip = require('gulp-zip');
gulp.task('delete-dist', function(){
return gulp.src('dist')
.pipe(clean());
});
gulp.task('move-to-dist', ['delete-dist'], function() {
return gulp.src([
'*/**/*.css',
'**/*.js',
'**/*.html',
'*/**/*.png',
'*/**/*.svg',
'manifest.webapp',
'!node_modules/**',
'!bower_components/**',
'!gulpfile.js'])
.pipe(gulp.dest('dist/'));
});
gulp.task('move-dependencies', ['move-to-dist'], function(){
return gulp.src([
'bower_components/**/*.min.js'])
.pipe(gulp.dest('dist/bower_components/'));
});
gulp.task('default', [
'move-to-dist',
'move-dependencies'
],
function(){
return gulp.src('dist/**')
.pipe(zip('ttrss.zip'))
.pipe(gulp.dest('dist/'));
});