Skip to content

Commit 887a581

Browse files
committed
Fix issues with development mode
1 parent 1b063c9 commit 887a581

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Use local gulp
77
- Add npm-debug.log to .gitignore.
88
- Update development dependencies.
9+
- Fix issues with development mode.
910

1011
## 1.0.1
1112

gulpfile.coffee

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@ tpm = (task) ->
1616
tpmUpdate = [
1717
tpm('install_plugins')
1818
tpm('install_plugins')
19-
].join('; ')
19+
]
2020

2121
gulp.task 'default', ['watch']
2222

23-
gulp.task 'dev', ['clean', 'install'],
24-
$.shell.task([tpmUpdate])
23+
gulp.task 'nodev', ->
24+
del(pluginPath, {force: true})
2525

26-
gulp.task 'nodev', ['clean'],
27-
$.shell.task([tpmUpdate])
26+
gulp.src('')
27+
.pipe $.shell(tpmUpdate)
2828

29-
gulp.task 'clean', ->
29+
gulp.task 'dev', ->
3030
del(pluginPath, {force: true})
3131

32-
gulp.task 'install', ->
3332
gulp.src('*.tmux')
3433
.pipe gulp.dest(pluginPath)
3534

@@ -40,7 +39,10 @@ gulp.task 'install', ->
4039
.pipe $.replace(repoPath, pluginPath)
4140
.pipe gulp.dest(pluginPath)
4241

43-
gulp.task 'watch', ['install'], ->
42+
gulp.src('')
43+
.pipe $.shell(tpmUpdate, {ignoreErrors: true})
44+
45+
gulp.task 'watch', ['dev'], ->
4446
$.watch ['./*.tmux', './*.conf', './plugin/**/*.conf'], (file) ->
4547
if file.event is 'unlink'
4648
del(file.path, {force: true})

0 commit comments

Comments
 (0)