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() { export default function() {
return src( [ return src( [
'**/*', 'dist/**/*',
'!src/**', 'templates/**/*',
'!node_modules/**', 'tinymce/**/*',
'!README.md', '*.php',
'!.*', 'LICENSE',
'!package.json', 'readme.txt',
'!yarn.lock', 'screenshot*.png',
'!webpack.config.*', ], {
'!tsconfig.*', base: './',
'!gulpfile.*', } )
] )
.pipe( zip( `cognito-forms-${ pjson.version }.zip` ) ) .pipe( zip( `cognito-forms-${ pjson.version }.zip` ) )
.pipe( dest( '.' ) ); .pipe( dest( '.' ) );
} }