gulpfile.js
function js(prefix) {
	gulp.src('src/clockpicker.js')
		.pipe(rename({
			prefix: prefix + '-'
		}))
		.pipe(replace(versionRegExp, version))
		.pipe(gulp.dest('dist'))
		.pipe(uglify({
			preserveComments: 'some'
		}))
		.pipe(rename({
			suffix: '.min'
		}))
		.pipe(gulp.dest('dist'));
}
function js(prefix) {
	gulp.src('src/clockpicker.js')
		.pipe(rename({
			prefix: prefix + '-'
		}))
		.pipe(replace(versionRegExp, version))
		.pipe(gulp.dest('dist'))
		.pipe(uglify({
			preserveComments: 'some'
		}))
		.pipe(rename({
			suffix: '.min'
		}))
		.pipe(gulp.dest('dist'));
}
function js ( prefix ) { gulp . src ( 'src/clockpicker.js' ) . pipe ( rename ( { prefix : prefix + '-' } ) ) . pipe ( replace ( versionRegExp , version ) ) . pipe ( gulp . dest ( 'dist' ) ) . pipe ( uglify ( { preserveComments : 'some' } ) ) . pipe ( rename ( { suffix : '.min' } ) ) . pipe ( gulp . dest ( 'dist' ) ) ; }
Rename and uglify scripts
Rename and uglify scripts