@@ -16,20 +16,19 @@ tpm = (task) ->
16
16
tpmUpdate = [
17
17
tpm (' install_plugins' )
18
18
tpm (' install_plugins' )
19
- ]. join ( ' ; ' )
19
+ ]
20
20
21
21
gulp .task ' default' , [' watch' ]
22
22
23
- gulp .task ' dev ' , [ ' clean ' , ' install ' ],
24
- $ . shell . task ([tpmUpdate] )
23
+ gulp .task ' nodev ' , ->
24
+ del (pluginPath, { force : true } )
25
25
26
- gulp .task ' nodev ' , [ ' clean ' ],
27
- $ .shell . task ([ tpmUpdate] )
26
+ gulp .src ( ' ' )
27
+ . pipe $ .shell ( tpmUpdate)
28
28
29
- gulp .task ' clean ' , ->
29
+ gulp .task ' dev ' , ->
30
30
del (pluginPath, {force : true })
31
31
32
- gulp .task ' install' , ->
33
32
gulp .src (' *.tmux' )
34
33
.pipe gulp .dest (pluginPath)
35
34
@@ -40,7 +39,10 @@ gulp.task 'install', ->
40
39
.pipe $ .replace (repoPath, pluginPath)
41
40
.pipe gulp .dest (pluginPath)
42
41
43
- gulp .task ' watch' , [' install' ], ->
42
+ gulp .src (' ' )
43
+ .pipe $ .shell (tpmUpdate, {ignoreErrors : true })
44
+
45
+ gulp .task ' watch' , [' dev' ], ->
44
46
$ .watch [' ./*.tmux' , ' ./*.conf' , ' ./plugin/**/*.conf' ], (file ) ->
45
47
if file .event is ' unlink'
46
48
del (file .path , {force : true })
0 commit comments