Last active
October 28, 2017 03:06
-
-
Save masnagam/6f4c3b5b3653dec4c550 to your computer and use it in GitHub Desktop.
Emacsを使って既存のファイルを編集していると,gulp.watch内でクラッシュが発生する問題の回避方法 ref: http://qiita.com/masnagam/items/33f4ae8a663539627b94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.watch ['path/to/**/*.coffee'], ['compile'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [20:35:04] Error: ENOENT, no such file or directory 'path/to/.#file.coffee' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install git+https://github.com/masnagam/glob-chokidar.git --save-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| watch = require 'glob-chokidar' | |
| gulp.task 'watch', -> | |
| watch ['path/to/**/*.coffee'], -> gulp.start ['compile'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| watch ['path/to/compiled/assets/**'] | |
| .on 'change', (path) -> | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.watch ['path/to/*.include', '!path/to/*.exclude'], ['task'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| watch ['path/to/*.include'], ignored: ['path/to/*.exclude'], -> | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.watch ['path/to/**'], ['task'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| touch path/to/new.coffee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment