cognitoforms-wordpress/gulpfile.esm.js

20 lines
364 B
JavaScript
Raw Normal View History

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',
'LICENSE',
'readme.txt',
'screenshot*.png',
], {
base: './',
} )
2022-02-10 18:01:32 -05:00
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
.pipe( dest( '.' ) );
}