Commit 7eb453ef authored by JC Brand's avatar JC Brand

Somewhere along the way the code to build the locales got removed

Adding it back again.
parent d00f2d1c
...@@ -32,8 +32,22 @@ module.exports = function(grunt) { ...@@ -32,8 +32,22 @@ module.exports = function(grunt) {
dest: 'css/converse.min.css', dest: 'css/converse.min.css',
src: ['css/converse.css'] src: ['css/converse.css']
} }
},
json: {
main: {
options: {
namespace: 'locales',
includePath: true,
processName: function(filename) {
return filename.toLowerCase().match(/^locale\/(.*)\/lc_messages/)[1];
}
},
src: ['locale/**/LC_MESSAGES/*.json'],
dest: 'builds/locales.js'
}
} }
}); });
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jst'); grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-json');
}; };
...@@ -170,6 +170,7 @@ converse:: stamp-npm ...@@ -170,6 +170,7 @@ converse:: stamp-npm
build:: stamp-npm build:: stamp-npm
$(GRUNT) jst $(GRUNT) jst
$(GRUNT) cssmin $(GRUNT) cssmin
$(GRUNT) json
make jsmin make jsmin
######################################################################## ########################################################################
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment