-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (32 loc) · 971 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
30
31
32
33
34
35
36
var gulp = require('gulp'),
minify = require('gulp-minify'),
babel = require('gulp-babel'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload');
gulp.task('default', function () {
gulp.src([
'resources/connection/Buffer.js',
'resources/config.js',
'resources/visualizer/**/*.js',
'resources/simulator/Support/Vector.js'
])
.pipe(babel({
presets: ['es2015']
}))
.pipe(concat('simulation.js'))
.pipe(gulp.dest('app/'))
.pipe(livereload());
gulp.src(['bower_lib/**/*.js'])
.pipe(concat('dependencies.js'))
.pipe(gulp.dest('app/'))
.pipe(livereload());
gulp.src(['resources/index.html'])
.pipe(gulp.dest('app/'))
.pipe(livereload());
});
gulp.task('watch', function () {
livereload.listen();
gulp.watch([
'resources/visualizer/**/*'
], ['default']);
});