-
Notifications
You must be signed in to change notification settings - Fork 208
/
gulpfile.js
45 lines (40 loc) · 1.4 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
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('theia-sticky-sidebar.js', function () {
return gulp.src('js/theia-sticky-sidebar.js')
.pipe(sourcemaps.init())
.pipe(concat('theia-sticky-sidebar.js'))
.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('dist'));
});
gulp.task('theia-sticky-sidebar.min.js', function () {
return gulp.src('js/theia-sticky-sidebar.js')
.pipe(sourcemaps.init())
.pipe(concat('theia-sticky-sidebar.min.js'))
.pipe(uglify())
.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('dist'));
});
gulp.task('ResizeSensor.js', function () {
return gulp.src('bower_components/css-element-queries/src/ResizeSensor.js')
.pipe(sourcemaps.init())
.pipe(concat('ResizeSensor.js'))
.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('dist'));
});
gulp.task('ResizeSensor.min.js', function () {
return gulp.src('bower_components/css-element-queries/src/ResizeSensor.js')
.pipe(sourcemaps.init())
.pipe(concat('ResizeSensor.min.js'))
.pipe(uglify())
.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('dist'));
});
gulp.task('default', [
'theia-sticky-sidebar.js',
'theia-sticky-sidebar.min.js',
'ResizeSensor.js',
'ResizeSensor.min.js'
]);