From e94d47976dc5d8018877c977c3f4df085172532b Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Tue, 17 Jan 2017 20:22:38 -0700
Subject: [PATCH] Build language files on change
---
Gruntfile.js | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/Gruntfile.js b/Gruntfile.js
index be761a16cf..99a103a86d 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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/**',
+ ],
+ },
}
});