mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-20 22:43:01 +01:00
fix grunt
This commit is contained in:
14
src/start.js
14
src/start.js
@@ -105,12 +105,14 @@ function addProcessHandlers() {
|
||||
shutdown(1);
|
||||
});
|
||||
process.on('message', (msg) => {
|
||||
if (msg && msg.compiling === 'tpl') {
|
||||
const benchpressjs = require('benchpressjs');
|
||||
benchpressjs.flush();
|
||||
} else if (msg && msg.compiling === 'lang') {
|
||||
const translator = require('./translator');
|
||||
translator.flush();
|
||||
if (msg && Array.isArray(msg.compiling)) {
|
||||
if (msg.compiling.includes('tpl')) {
|
||||
const benchpressjs = require('benchpressjs');
|
||||
benchpressjs.flush();
|
||||
} else if (msg.compiling.includes('lang')) {
|
||||
const translator = require('./translator');
|
||||
translator.flush();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user