cognitoforms-wordpress/gulpfile.esm.js

21 lines
392 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( [
'**/*',
'!src/**',
'!node_modules/**',
'!README.md',
'!.*',
'!package.json',
'!yarn.lock',
'!webpack.config.*',
'!tsconfig.*',
'!gulpfile.*',
] )
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
.pipe( dest( '.' ) );
}