Build language files on change

v1.18.x
Peter Jaszkowiak 8 years ago
parent 65b866192e
commit e94d47976d

@ -27,6 +27,8 @@ module.exports = function (grunt) {
compiling = 'js';
} else if (target === 'templatesUpdated') {
compiling = 'tpl';
} else if (target === 'langUpdated') {
compiling = 'lang';
} else if (target === 'serverUpdated') {
// Do nothing, just restart
}
@ -93,7 +95,15 @@ module.exports = function (grunt) {
'!node_modules/nodebb-*/node_modules/**',
'!node_modules/nodebb-*/.git/**'
]
}
},
langUpdated: {
files: [
'public/language/**/*.json',
'node_modules/nodebb-*/**/*.json',
'!node_modules/nodebb-*/node_modules/**',
'!node_modules/nodebb-*/.git/**',
],
},
}
});

Loading…
Cancel
Save