forked from DuendeArchive/identity-model-oidc-client-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (29 loc) · 708 Bytes
/
gulpfile.js
File metadata and controls
32 lines (29 loc) · 708 Bytes
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
var gulp = require('gulp')
, del = require('del')
, concat = require('gulp-concat')
, uglify = require('gulp-uglify')
, rename = require('gulp-rename')
;
gulp.task('clean', function(cb){
del('dist', cb);
});
gulp.task('default', ['clean'], function () {
return gulp.src([
'lib/iife-start.js'
,'lib/crypto.js'
,'lib/rsa.js'
,'lib/json-sans-eval.js'
,'lib/jws-3.0.js'
,'lib/es6-promise-2.0.0.js'
,'lib/defaultHttpRequest.js'
,'lib/defaultPromiseFactory.js'
,'oidc-client.js'
,'lib/iife-end.js'
])
.pipe(concat('oidc-client.js'))
.pipe(gulp.dest('dist'))
.pipe(uglify())
.pipe(rename({suffix:'.min'}))
.pipe(gulp.dest('dist'))
;
});