2022-02-10 18:01:32 -05:00
|
|
|
import { src, dest } from 'gulp';
|
|
|
|
import zip from 'gulp-zip';
|
|
|
|
import pjson from './package.json';
|
|
|
|
|
|
|
|
export default function() {
|
|
|
|
return src( [
|
2022-02-19 16:44:11 -05:00
|
|
|
'dist/**/*',
|
|
|
|
'templates/**/*',
|
|
|
|
'tinymce/**/*',
|
|
|
|
'*.php',
|
2022-02-19 17:34:29 -05:00
|
|
|
'cogicon.svg',
|
2022-02-19 16:44:11 -05:00
|
|
|
'LICENSE',
|
|
|
|
'readme.txt',
|
|
|
|
'screenshot*.png',
|
|
|
|
], {
|
|
|
|
base: './',
|
|
|
|
} )
|
2022-02-10 18:01:32 -05:00
|
|
|
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
|
|
|
|
.pipe( dest( '.' ) );
|
|
|
|
}
|