forked from Mevrael/bunny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
29 lines (23 loc) · 851 Bytes
/
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
var gulp = require('gulp'),
rollup = require('gulp-rollup'),
//sourcemaps = require('gulp-sourcemaps'),
babel = require('rollup-plugin-babel');
var examples = [
'container',
'autocomplete'
];
gulp.task('default', function(){
var build_examples = function() {
examples.forEach(function(example) {
gulp.src('examples/' + example + '/index.js', {read: false})
.pipe(rollup({
// any option supported by rollup can be set here, including sourceMap
sourceMap: false,
plugins: [babel()]
}))
//.pipe(sourcemaps.write(".")) // this only works if the sourceMap option is true
.pipe(gulp.dest('examples/' + example + '/dist'));
});
};
build_examples();
});