-
Notifications
You must be signed in to change notification settings - Fork 180
/
gulpfile.js
59 lines (57 loc) · 1.42 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
56
57
58
59
const gulp = require('gulp');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const clean = require('gulp-clean');
const flatten = require('gulp-flatten');
const replace = require('gulp-replace');
gulp.task('build', () =>
gulp.src('./src/**/*.js')
.pipe(flatten())
.pipe(replace("from './lib/", "from './"))
.pipe(replace("from './in-and-out/", "from './"))
.pipe(replace("from '../RevealBase';", "from './RevealBase';"))
.pipe(replace("from '../lib/globals';", "from './globals';"))
.pipe(replace("from '../lib/wrap';", "from './wrap';"))
.pipe(babel())
.pipe(uglify())
.pipe(gulp.dest('./'))
);
gulp.task('clean', function () {
return gulp.src([
'./index.js',
'./RevealBase.js',
'./hamburger.js',
'./withReveal.js',
'./responsive.js',
'./HamburgerIcon.js',
'./makeCarousel.js',
'./swipedetect.js',
'./Animation.js',
'./Stepper.js',
'./Step.js',
'./globals.js',
'./debounce.js',
'./throttle.js',
'./Bounce.js',
'./Fade.js',
'./Flash.js',
'./HeadShake.js',
'./Jello.js',
'./Jump.js',
'./Pulse.js',
'./Roll.js',
'./RubberBand.js',
'./Shake.js',
'./Slide.js',
'./Swing.js',
'./Tada.js',
'./Wobble.js',
'./Flip.js',
'./Reveal.js',
'./Rotate.js',
'./LightSpeed.js',
'./Spin.js',
'./Zoom.js',
'./wrap.js',
], {read: false}).pipe(clean());
});