forked from DemocracyClub/yournextrepresentative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
58 lines (49 loc) · 1.29 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
var gulp = require('gulp');
var concat = require('gulp-concat');
const foundationDir = './node_modules/foundation-sites';
const jqueryDir = './node_modules/jquery';
const select2Dir = './node_modules/select2';
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/'))
}
exports.default = gulp.series(
jquery_js,
select2_js,
select2_css,
foundation_scss,
foundation_js
);