-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGulpfile.coffee
64 lines (51 loc) · 1.2 KB
/
Gulpfile.coffee
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
60
61
62
63
64
gulp = require 'gulp'
coffee = require 'gulp-coffee'
watch = require 'gulp-watch'
pkg = require './package.json'
gulp.task 'coffee', ->
gulp.src 'src/coffee/*.coffee'
.pipe coffee { bare: true }
.pipe gulp.dest 'cache/.temp/js'
gulp.task 'watch-coffee', ->
gulp.watch 'src/coffee/*.coffee', ->
gulp.start 'coffee'
gulp.task 'html', ->
gulp.src 'src/html/*.html'
.pipe gulp.dest 'cache/.temp/'
gulp.task 'watch-html', ->
gulp.watch 'src/html/*.html', ->
gulp.start 'html'
gulp.task 'xml', ->
gulp.src 'src/xml/*.xml'
.pipe gulp.dest 'cache/.temp/xml/'
gulp.task 'watch-xml', ->
gulp.watch 'src/xml/*.xml', ->
gulp.start 'xml'
gulp.task 'xsl', ->
gulp.src 'src/xsl/*.xsl'
.pipe gulp.dest 'cache/.temp/xsl/'
gulp.task 'watch-xsl', ->
gulp.watch 'src/xsl/*.xsl', ->
gulp.start 'xsl'
gulp.task 'css', ->
gulp.src ['src/css/*.css', '!src/css/*_flymake.css']
.pipe gulp.dest 'cache/.temp/css/'
gulp.task 'watch-css', ->
gulp.watch 'src/css/*.css', ->
gulp.start 'css'
gulp.task 'default', [
'coffee'
'xsl'
'xml'
'html'
'css'
]
gulp.task 'clean', ->
del "cache/.temp"
gulp.task 'watch', [
'watch-coffee'
'watch-html'
'watch-xml'
'watch-xsl'
'watch-css'
]