20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
import { src, dest } from 'gulp';
|
|
import zip from 'gulp-zip';
|
|
import pjson from './package.json';
|
|
|
|
export default function() {
|
|
return src( [
|
|
'dist/**/*',
|
|
'templates/**/*',
|
|
'tinymce/**/*',
|
|
'*.php',
|
|
'LICENSE',
|
|
'readme.txt',
|
|
'screenshot*.png',
|
|
], {
|
|
base: './',
|
|
} )
|
|
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
|
|
.pipe( dest( '.' ) );
|
|
}
|