-
Notifications
You must be signed in to change notification settings - Fork 27
/
gulpfile.js
72 lines (60 loc) · 1.63 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
var gulp = require('gulp');
var concat = require('gulp-concat');
var convertEncoding = require('gulp-convert-encoding');
const foundationDir = './node_modules/foundation-sites';
const jqueryDir = './node_modules/jquery';
const select2Dir = './node_modules/select2';
const sorttable = './node_modules/sorttable';
const paths = {
foundation_js: [`${foundationDir}/scss/*`,`${foundationDir}/scss/*/**`,]
};
function jquery_js() {
var paths = [
`${jqueryDir}/dist/jquery.js`,
];
return gulp.src(paths)
.pipe(gulp.dest('ynr/assets/js/'))
}
function select2_js() {
var paths = [
`${select2Dir}/dist/js/select2.full.js`,
];
return gulp.src(paths)
.pipe(gulp.dest('ynr/assets/js/'))
}
function select2_css() {
var paths = [
`${select2Dir}/dist/css/select2.css`,
];
return gulp.src(paths)
.pipe(gulp.dest('ynr/assets/scss/'))
}
function foundation_js() {
var paths = [
`${foundationDir}/js/foundation.js`,
];
return gulp.src(paths)
.pipe(concat('foundation.js'))
.pipe(gulp.dest('ynr/assets/js/'))
}
function foundation_scss() {
var paths = [`${foundationDir}/scss/*`,`${foundationDir}/scss/*/**`,];
return gulp.src(paths)
.pipe(gulp.dest('ynr/assets/scss/'))
}
function sorttable_js() {
var paths = [
`${sorttable}/sorttable.js`,
];
return gulp.src(paths)
.pipe(convertEncoding({from: 'iso-8859-15', to: 'utf8'}))
.pipe(gulp.dest('ynr/assets/js/'))
}
exports.default = gulp.series(
jquery_js,
select2_js,
select2_css,
foundation_scss,
foundation_js,
sorttable_js,
);