forked from naikus/svg-gauge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
47 lines (39 loc) · 1.1 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
var gulp = require("gulp"),
del = require("del"),
concat = require("gulp-concat"),
uglify = require("gulp-uglify");
// eventStream = require("event-stream");
var config = {
src_dir: "src",
dist: {
dir: "dist",
css_dir: "dist/css"
}
};
gulp.task("default", function() {
console.log("Available tasks:");
console.log([
"------------------------------------------------------------------------",
"build Build stage in the dist directory",
"clean Clean the dest directory",
"-------------------------------------------------------------------------"
].join("\n"));
});
gulp.task("clean", function(cb) {
del([
config.dist.dir
], cb);
});
gulp.task("build", function() {
// do other build things
// gulp.start("jshint");
// return eventStream.merge(
return gulp.src(["src/gauge.js"]/*, {debug: true}*/)
.pipe(concat("gauge.js"))
.pipe(gulp.dest(config.dist.dir))
.pipe(concat("gauge.min.js"))
.pipe(gulp.dest(config.dist.dir))
.pipe(uglify())
.pipe(gulp.dest(config.dist.dir))
// );
});