Skip to content

Commit

Permalink
:trollface: Version: 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VandeurenGlenn committed May 14, 2017
1 parent 26e0023 commit e6aade6
Show file tree
Hide file tree
Showing 15 changed files with 9,569 additions and 7,382 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,17 @@ Serve your component/app documentation & demo
- [ ] Handle errors
- [ ] Run tests with [Travis CI](https://travis-ci.org/) & [SAUCELABS](https://saucelabs.com/)


## Projects using Backed CLI

### components
- [custom-marked](https://github.com/VandeurenGlenn/custom-marked)
- [reef-controller](https://github.com/Reeflight/reef-controller) RPI reeflight controller

### frameworks
- [Backed](https://github.com/VandeurenGlenn/backed) - Small web framework for quick app & component development

## Organizations using Backed CLI
- [reeflight](https://github.com/reeflight)

## License

MIT © [Glenn Vandeuren]()
Expand Down
9 changes: 8 additions & 1 deletion bin/backed.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ var logger$3 = require('backed-logger');
var time = function time() {
return new Date().toLocaleTimeString();
};
var worker = void 0;

/**
* @extends EventEmitter
Expand Down Expand Up @@ -1088,7 +1089,11 @@ var Watcher = function (_EventEmitter) {
value: function runWorker(task, config) {
var _this3 = this;

var worker = void 0;
if (this.busy) {
worker.kill();
this.busy = false;
}
this.busy = true;
worker = fork$1(path$2.join(__dirname, 'workers/watcher-worker.js'));
worker.on('message', function (message) {
if (message === 'done') {
Expand All @@ -1097,6 +1102,8 @@ var Watcher = function (_EventEmitter) {
}
logger$3.log('[' + time() + '] ' + logger$3._chalk('Reloading browser', 'cyan'));
_this3.emit(message);
worker.kill();
_this3.busy = false;
});
worker.send({ task: task, config: config });
}
Expand Down
Loading

0 comments on commit e6aade6

Please sign in to comment.