-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·55 lines (46 loc) · 1.13 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
var gulp = require('gulp');
var sass = require('gulp-sass');
var templatesPath = 'Resources/public/templates';
var appsPath = 'Resources/public/apps/toolsModule';
var templates = {
'screens': [
'vejlebib-portrait-split'
],
'slides': [
'vejlebib-calendar-list'
]
};
var apps = [
'vejlebib-exchange-tool'
];
/**
* Process SCSS using libsass
*/
gulp.task('sass', function (done) {
'use strict';
for (var templateType in templates) {
var arr = templates[templateType];
arr.forEach(function (element) {
var path = templatesPath + '/' + templateType + '/' + element + '/';
gulp.src(path + element + '.scss')
.pipe(sass({
outputStyle: 'compressed',
includePaths: [
'Resources/sass/compass-mixins/lib'
]
}).on('error', sass.logError))
.pipe(gulp.dest(path));
});
}
apps.forEach(function (app) {
gulp.src(appsPath + '/' + app + '.scss')
.pipe(sass({
outputStyle: 'compressed',
includePaths: [
'Resources/sass/compass-mixins/lib'
]
}).on('error', sass.logError))
.pipe(gulp.dest(appsPath));
});
done();
});