From b4314650bcc73bd81d15d591b1ffabc853440e2e Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Fri, 30 Jun 2023 11:13:22 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(global):=20building=20FUI=20?= =?UTF-8?q?we=20have=20unnecessary=20repeated=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a10fdaf1..554e888e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -269,6 +269,7 @@ gulp.task( 'library:scripts:all', function( cb ) { eslint(), eslint.format(), eslint.failAfterError(), + concat( 'forminator-ui.js' ), babel({ presets: [ [ '@babel/preset-env', { @@ -276,7 +277,6 @@ gulp.task( 'library:scripts:all', function( cb ) { } ] ] }), - concat( 'forminator-ui.js' ), header( banner ), gulp.dest( library.output.scripts ), uglify(), @@ -297,6 +297,7 @@ gulp.task( 'library:scripts:form', function( cb ) { eslint(), eslint.format(), eslint.failAfterError(), + concat( 'forminator-form.js' ), babel({ presets: [ [ '@babel/env', { @@ -304,7 +305,6 @@ gulp.task( 'library:scripts:form', function( cb ) { } ] ] }), - concat( 'forminator-form.js' ), header( banner ), gulp.dest( library.output.scripts ), uglify(), @@ -325,6 +325,7 @@ gulp.task( 'library:scripts:poll', function( cb ) { eslint(), eslint.format(), eslint.failAfterError(), + concat( 'forminator-poll.js' ), babel({ presets: [ [ '@babel/env', { @@ -332,7 +333,6 @@ gulp.task( 'library:scripts:poll', function( cb ) { } ] ] }), - concat( 'forminator-poll.js' ), header( banner ), gulp.dest( library.output.scripts ), uglify(), @@ -350,6 +350,7 @@ gulp.task( 'library:scripts:select2', function( cb ) { pump([ gulp.src( library.watch.scripts.select2 ), + concat( 'select2.full.js' ), babel({ presets: [ [ '@babel/env', { @@ -357,7 +358,6 @@ gulp.task( 'library:scripts:select2', function( cb ) { } ] ] }), - concat( 'select2.full.js' ), rename({ suffix: '.min' }),