AWSメモ >
docker pull localstack/localstack
docker run -it -p 4567-4582:4567-4582 -p 8080:8080 localstack/localstack
sudo npm install gulp -g
mkdir watch && cd watch
gulpfile.js
var gulp = require('gulp'); //var notify = require('gulp-notify'); var notifier = require('node-notifier'); // 監視 gulp.task('watch', function(){ var watcher = gulp.watch('results/*.txt'); watcher.on('change', function(event) { console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); notifier.notify({ //'title': 'ファイル更新', 'message': event.path + "が更新されました" }); }); }); // デフォルトタスクの指定 gulp.task('default', ['watch']);
gulp