|
|
@ -281,8 +281,7 @@ var fs = require('fs'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
prepare: function (callback) {
|
|
|
|
prepare: function (callback) {
|
|
|
|
plugins.fireHook('filter:scripts.get', this.scripts, function(err, scripts) {
|
|
|
|
plugins.fireHook('filter:scripts.get', this.scripts, function(err, scripts) {
|
|
|
|
var ctime,
|
|
|
|
var jsPaths = scripts.map(function (jsPath) {
|
|
|
|
jsPaths = scripts.map(function (jsPath) {
|
|
|
|
|
|
|
|
jsPath = path.normalize(jsPath);
|
|
|
|
jsPath = path.normalize(jsPath);
|
|
|
|
|
|
|
|
|
|
|
|
if (jsPath.substring(0, 7) === 'plugins') {
|
|
|
|
if (jsPath.substring(0, 7) === 'plugins') {
|
|
|
@ -332,8 +331,7 @@ var fs = require('fs'),
|
|
|
|
|
|
|
|
|
|
|
|
emitter.emit('meta:js.compiled');
|
|
|
|
emitter.emit('meta:js.compiled');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
winston.error('[meta/js] Could not compile client-side scripts!');
|
|
|
|
winston.error('[meta/js] Could not compile client-side scripts! ' + payload.error.message);
|
|
|
|
winston.error('[meta/js] ' + payload.error.message);
|
|
|
|
|
|
|
|
minifier.kill();
|
|
|
|
minifier.kill();
|
|
|
|
process.exit();
|
|
|
|
process.exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|