10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gulpfileをwatch

Last updated at Posted at 2014-10-17

Gruntfile更新したらgruntコマンドをリスタート」のgulp版

##やりたいこと

.coffeeとか.scssとか.jadeとかgulp watchするみたいに、gulpfileもwatchして、修正したら今実行中のgulpタスクを再実行したい

##やりかた

nodemonつかう

  • nodemonつかう
  • ないならnpm i -g nodemonしとく
nodemon "$(which gulp)" --watch gulpfile.coffee

package.jsonもwatchしておきたい

今のとこ使ってないが、 --watch package.jsonをさらに追加すればOK

 nodemon "$(which gulp)" --watch gulpfile.coffee --watch package.json
10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?