'use strict';
const Watcher = require('./watcher');
module.exports = class ServerWatcher extends Watcher {
constructor(options) {
super(options);
this.watcher.on('add', this.didAdd.bind(this));
this.watcher.on('delete', this.didDelete.bind(this));
}
constructWatcher(options) {
return new (require('sane'))(this.watchedDir, options);
}
didChange(relativePath) {
this.ui.writeLine(`File changed: "${relativePath}"`);
}
didAdd(relativePath) {
this.ui.writeLine(`File added: "${relativePath}"`);
}
didDelete(relativePath) {
this.ui.writeLine(`File deleted: "${relativePath}"`);
}
};
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|