-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (33 loc) · 840 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
const gulp = require('gulp');
const wpPot = require('gulp-wp-pot');
const zip = require('gulp-zip');
gulp.task('pot', function () {
return gulp.src(['**/*.php', '!node_modules/**', '!vendor/**'])
.pipe(wpPot({
domain: 'infinite-uploads',
package: 'Infinite Uploads'
}))
.pipe(gulp.dest('infinite-uploads.pot'));
});
gulp.task('zip', function () {
return gulp.src([
'./**/*',
'!node_modules/**',
'!bin/**',
'!tests/**',
'!build/**',
'!./gulpfile.js',
'!./package.json',
'!./package-lock.json',
'!./phpunit.xml.dist',
'!./build-aws3.sh',
'!./README.md',
'!./.*'
],
{
base: "../"
})
.pipe(zip('infinite-uploads/build/infinite-uploads.zip'))
.pipe(gulp.dest('./../'));
});
gulp.task('default', gulp.series('zip'));