-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
37 lines (34 loc) · 1.19 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
36
37
// Example of how to zip a directory
var gulp = require('gulp');
var zip = require('gulp-zip');
gulp.task('zip', function () {
return gulp.src([
'./**/*',
'!./{node_modules,node_modules/**/*}',
'!./assets/{sass,sass/*}',
'!./gulpfile.js',
'!./package.json',
'!./package-lock.json',
'!./admin/js/kontxt-admin-panel/{node_modules,node_modules/**/*}',
'!./admin/js/kontxt-admin-panel/package.json',
'!./admin/js/kontxt-admin-panel/package-lock.json',
'!./admin/js/kontxt-admin-panel/{src,src/*}',
])
.pipe(zip('kontxt-for-wordpress.zip'))
.pipe(gulp.dest('./../'));
});
gulp.task('copy', function () {
return gulp.src([
'./**/*',
'!./{node_modules,node_modules/**/*}',
'!./assets/{sass,sass/*}',
'!./gulpfile.js',
'!./package.json',
'!./package-lock.json',
'!./admin/js/kontxt-admin-panel/{node_modules,node_modules/**/*}',
'!./admin/js/kontxt-admin-panel/package.json',
'!./admin/js/kontxt-admin-panel/package-lock.json',
'!./admin/js/kontxt-admin-panel/{src,src/*}',
])
.pipe(gulp.dest('./../kontxt-svn/trunk/'));
});