forked from pumpinger/schartjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
41 lines (31 loc) · 843 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
37
38
39
40
41
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
browserSync = require('browser-sync');
gulp.task('default', function() {
console.log('hello world');
});
gulp.task('jsmin', function () {
gulp.src("js/schart.js")
.pipe(uglify())
.pipe(concat('all.js'))
.pipe(gulp.dest("dest/"));
});
gulp.task('jsmin2', function () {
gulp.src("js/test.js")
.pipe(uglify())
.pipe(concat('all.js'))
.pipe(gulp.dest("dest/"));
});
gulp.task('watch', function () {
gulp.watch('js/schart.js', ['jsmin','browser-sync']);
});
gulp.task('browser-sync', function() {
browserSync({
files: "**",
server: {
baseDir: "./"
}
});
});
//browser-sync start --proxy "localhost:80" --files "js/schart.js"