Simplify zip file build pipeline

This commit is contained in:
Michael Thomas 2022-02-19 16:44:11 -05:00
parent d9888842b6
commit 45f8cfafdd
1 changed files with 10 additions and 11 deletions

View File

@ -4,17 +4,16 @@ import pjson from './package.json';
export default function() {
return src( [
'**/*',
'!src/**',
'!node_modules/**',
'!README.md',
'!.*',
'!package.json',
'!yarn.lock',
'!webpack.config.*',
'!tsconfig.*',
'!gulpfile.*',
] )
'dist/**/*',
'templates/**/*',
'tinymce/**/*',
'*.php',
'LICENSE',
'readme.txt',
'screenshot*.png',
], {
base: './',
} )
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
.pipe( dest( '.' ) );
}