Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit eb4bba8

Browse files
committed
No longer required to run gulp install after gulp dev.
1 parent 9a940c5 commit eb4bba8

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## HEAD
4+
5+
- No longer required to run `gulp install`
6+
after entering development mode.
7+
38
## 1.0.1
49

510
- Improvements to README.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ Enter development mode with
118118

119119
```bash
120120
$ gulp dev
121-
$ gulp install
122121
```
123122

124-
Have gulp watch for changes with
123+
After entering development mode,
124+
have gulp watch for changes with
125125

126126
```bash
127127
$ gulp
@@ -136,7 +136,6 @@ $ gulp nodev
136136
[Gulp]: http://gulpjs.com/
137137
[npm]: https://www.ruby-lang.org/en/
138138

139-
140139
## Contributing
141140

142141
Please submit and comment on bug reports and feature requests.

gulpfile.coffee

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@ branchInitial = 'master'
1313
branch = "#{child_process.execSync('git rev-parse --abbrev-ref HEAD')}".trim()
1414
pluginPath = "#{homePath}/.zgen/local/zshrc-#{branch}"
1515

16-
zgenReset = () -> del("#{homePath}/.zgen/init.zsh", {force: true})
16+
zgenReset = -> del("#{homePath}/.zgen/init.zsh", {force: true})
1717

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

20+
gulp.task 'dev', ['clean', 'replace', 'install']
21+
22+
gulp.task 'nodev', ['clean'], ->
23+
gulp.src("#{homePath}/.zshrc")
24+
.pipe $.replace("branch='#{branch}'", "branch='#{branchInitial}'")
25+
.pipe gulp.dest(homePath)
26+
2027
gulp.task 'clean', ->
2128
del(pluginPath, {force: true})
2229
zgenReset()
2330

24-
gulp.task 'dev', ['clean'], ->
31+
gulp.task 'replace', ->
2532
gulp.src("#{homePath}/.zshrc")
2633
.pipe $.replace("branch='#{branchInitial}'", "branch='#{branch}'")
2734
.pipe gulp.dest(homePath)
2835

29-
gulp.task 'nodev', ['clean'], ->
30-
gulp.src("#{homePath}/.zshrc")
31-
.pipe $.replace("branch='#{branch}'", "branch='#{branchInitial}'")
32-
.pipe gulp.dest(homePath)
33-
3436
gulp.task 'install', ->
3537
gulp.src('*.zsh')
3638
.pipe gulp.dest(pluginPath)

0 commit comments

Comments
 (0)