grunt-contrib-watch 监控 JS 文件改变来运行预定义的Tasks

 

依赖于 GruntJs ~0.4.0

监控 JS 文件改变来运行预定义的Tasks

 

Demo:

    watch: {
      scripts: {
        files: ['src/**/*.js'],
        tasks: ['jshint'],
        options: {
          spawn: false
        }
      }
    },

 

 

 引用: https://www.npmjs.com/package/grunt-contrib-watch

posted @ 2015-01-16 15:53  夏夏夏夏夏夏夏  阅读(185)  评论(0编辑  收藏  举报
© 2014 Tea.Fish Do't Retain Any Rights. 版权没有,随意粘贴