gulp-file-ready
Gulp plugin to wait until writing to the file is over. (ファイルの更新が完了するまで待機させるGulpプラグイン)
install
npm install --save-dev gulp-file-ready
Example
gulpfile.js
var gulp = ;var ready = ; gulp;
API
ready(option)
option
specify msec. default is 1000ms.
return gulp //100msec ;
Test
Please start this Program(need Bash, and md5 command). This program is write too long random string.
$ cd yourdirectory$ tool/makeLargeFile.sh0123::
Launch a new Terminal and run gulp
.If the file has been updated it will not proceed.If you stop tool/makeLargeFile.sh
, Gulp will proceed to the next process
$ cd yourdirectory$ gulp[18:38:17] Using gulpfile /Develop/gulp-file-ready/gulpfile.js[18:38:17] Starting 'default'...