-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
29 lines (27 loc) · 876 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
let $a = require( 'easy-gulp-tasker' );
let $gulp = require( 'gulp' );
//let rename = require( 'gulp-rename' );
let $node_path = "./node_modules/";
let $assets_path = "./vendors/";
/**
* {ActualPATH:DISTPATH}
* @type {}
*/
let $filesToCopy = {
'./node_modules/select2/dist/js/*.full.min.js': 'select2/',
'./node_modules/select2/dist/css/*.min.*': 'select2/',
'./node_modules/chosen-js/*.jquery.min.js': 'chosen/',
'./node_modules/chosen-js/*.min.css': 'chosen/',
'./node_modules/chosen-js/*.png': 'chosen/',
'./node_modules/inputmask/dist/min/*.js': 'inputmask',
'./node_modules/@simonwep/pickr/dist/pickr.es5.min.js': 'pickr',
};
$gulp.task( 'copy', ( callback ) => {
let $x;
for( $x in $filesToCopy ) {
let $dist_path = $filesToCopy[ $x ];
$gulp.src( $x )
.pipe( $gulp.dest( $assets_path + $dist_path ) );
}
callback();
} );