-
Notifications
You must be signed in to change notification settings - Fork 13
/
Gulpfile.ls
39 lines (30 loc) · 954 Bytes
/
Gulpfile.ls
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
require! <[ gulp gulp-load-plugins ]>
plugins = gulp-load-plugins!
err = (e) ->
console.log "%s: %s", e.name, e.message
this.emit 'end'
gulp.task 'default', [ 'compile' ]
gulp.task 'compile', [ 'compile-ls', 'copy-jade' ]
gulp.task 'compile-ls' ->
gulp.src 'src/**/*.ls'
.pipe plugins.strip-code do
start_comment: \test-exports
end_comment: \end-test-exports
.pipe plugins.livescript!.on 'error', err
.pipe gulp.dest 'lib'
gulp.task 'copy-jade' ->
gulp.src 'src/server/index.jade'
.pipe gulp.dest 'lib/server'
gulp.task 'watch' ->
gulp.watch 'src/**/*.ls', [ 'compile-ls' ]
gulp.watch 'src/**/*.jade', [ 'copy-jade' ]
bump = (up = 'prerelease') ->
console.log up
gulp
.src './package.json'
.pipe plugins.bump type: up
.pipe gulp.dest './'
gulp.task 'prerelease', -> bump 'prerelease'
gulp.task 'patch', -> bump 'patch'
gulp.task 'minor', -> bump 'minor'
gulp.task 'major', -> bump 'major'