This file contains 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
'use strict'; | |
var fs = require('graceful-fs') | |
, _ = require('lodash') | |
, path = require('path') | |
, minimatch = require('minimatch') | |
, toString = Object.prototype.toString | |
; | |
// Standard helpers |
This file contains 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
Using background.js (https://github.com/kmalakoff/background)... | |
constructor: -> | |
@processing_count = 0 | |
@transformations_job_queue = new BGJobQueue(100) | |
_transformationsChangeCallback: -> | |
# reset the job queue to start again rather than waiting for the last batch to complete | |
@processing_count++; @_updateProcessingMesage() | |
@transformations_job_queue.clear() |