-
Notifications
You must be signed in to change notification settings - Fork 35
/
gulpfile.js
44 lines (38 loc) · 1.01 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
var gulp = require("gulp"),
include = require('gulp-include'),
coffee = require('gulp-coffee');
gulp.task("default", function(done) {
gulp.src([
'src/widgets/build/widgets.coffee',
'src/support/index.coffee'
])
.pipe(include())
.pipe(coffee())
.pipe(gulp.dest("lib/support"))
gulp.src([
'src/pioneer.coffee',
'src/environment.coffee',
'src/errorformat.coffee',
'src/custom_formatter.coffee',
'src/config_builder.coffee',
'src/scaffold_builder.coffee'
], { allowEmpty: true })
.pipe(coffee())
.pipe(gulp.dest("lib/"))
gulp.src([
'src/config.json',
'src/pioneerformat.js',
'src/pioneersummaryformat.js'
], { allowEmpty: true })
.pipe(gulp.dest("lib/"))
gulp.src([
'src/scaffold/simple.txt',
'src/scaffold/simple.js',
'src/scaffold/example.json'
])
.pipe(gulp.dest("lib/scaffold"))
done()
});
gulp.task("watch", function() {
gulp.watch('src/**/*', ['default'])
});