forked from devopsdays/devopsdays-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavascript.js
24 lines (22 loc) · 843 Bytes
/
javascript.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
var gulp = require('gulp'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify');
sourcemaps = require('gulp-sourcemaps');
var scripts = [
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'themes/devopsdays-theme/static/components/jquery-oembed-all/jquery.oembed.js',
'node_modules/jssocials/dist/jssocials.js',
'themes/devopsdays-theme/static/js/devopsdays.js'
]
gulp.task('js-concat', function(){
return gulp.src(scripts)
.pipe(sourcemaps.init())
.pipe(concat('concat.js'))
// .pipe(gulp.dest('dist'))
.pipe(rename('devopsdays-min.js'))
.pipe(uglify({ keep_fnames: true }))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('themes/devopsdays-theme/static/js'));
});