-
Notifications
You must be signed in to change notification settings - Fork 7
/
gulpfile.ls
40 lines (38 loc) · 886 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
40
!function exportedTasksDefinedBeginsHere
gulp.task 'publish' <[ publish:lib publish:changelog ]>
/*
* Implementation details
*/
require! {
gulp
'gulp-uglify'
'gulp-bump'
'gulp-rename'
'gulp-conventional-changelog'
}
require! {
'./lib/gulpfile'
}
/*
* publish tasks
*/
gulp.task 'publish:bump' ->
return gulp.src <[
package.json
bower.json
]>
.pipe gulp-bump process.env{type or 'patch'}
.pipe gulp.dest '.'
gulp.task 'publish:lib' <[ publish:bump ]> ->
return gulpfile!
.pipe gulp.dest 'vendor/assets/javascripts'
.pipe gulp.dest '.'
.pipe gulp-uglify preserveComments: 'some'
.pipe gulp-rename extname: '.min.js'
.pipe gulp.dest '.'
gulp.task 'publish:changelog' <[ publish:bump ]> ->
return gulp.src <[ package.json CHANGELOG.md ]>
.pipe gulp-conventional-changelog!
.pipe gulp.dest '.'
# define!
exportedTasksDefinedBeginsHere!