Skip to content

Commit

Permalink
Fix issues with development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Nov 9, 2015
1 parent 1b063c9 commit 887a581
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Use local gulp
- Add npm-debug.log to .gitignore.
- Update development dependencies.
- Fix issues with development mode.

## 1.0.1

Expand Down
18 changes: 10 additions & 8 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ tpm = (task) ->
tpmUpdate = [
tpm('install_plugins')
tpm('install_plugins')
].join('; ')
]

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

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

gulp.task 'nodev', ['clean'],
$.shell.task([tpmUpdate])
gulp.src('')
.pipe $.shell(tpmUpdate)

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

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

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

gulp.task 'watch', ['install'], ->
gulp.src('')
.pipe $.shell(tpmUpdate, {ignoreErrors: true})

gulp.task 'watch', ['dev'], ->
$.watch ['./*.tmux', './*.conf', './plugin/**/*.conf'], (file) ->
if file.event is 'unlink'
del(file.path, {force: true})
Expand Down

0 comments on commit 887a581

Please sign in to comment.